Click here to Skip to main content
15,919,028 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Assign a value to a hidden field from javascript Pin
yesu prakash15-Jul-09 1:22
yesu prakash15-Jul-09 1:22 
GeneralRe: Assign a value to a hidden field from javascript Pin
Christian Graus15-Jul-09 1:29
protectorChristian Graus15-Jul-09 1:29 
GeneralRe: Assign a value to a hidden field from javascript Pin
yesu prakash15-Jul-09 1:46
yesu prakash15-Jul-09 1:46 
GeneralRe: Assign a value to a hidden field from javascript Pin
Christian Graus15-Jul-09 2:34
protectorChristian Graus15-Jul-09 2:34 
GeneralRe: Assign a value to a hidden field from javascript Pin
yesu prakash15-Jul-09 2:59
yesu prakash15-Jul-09 2:59 
AnswerRe: Assign a value to a hidden field from javascript Pin
Ajeet mittal15-Jul-09 3:12
Ajeet mittal15-Jul-09 3:12 
QuestionHow to decrypt the password Pin
janani1315-Jul-09 0:45
janani1315-Jul-09 0:45 
AnswerRe: How to decrypt the password Pin
Sabari MD15-Jul-09 1:02
Sabari MD15-Jul-09 1:02 
private string Encryption(string strText, string strEncrypt)
{
byte[] byKey = new byte[20];
byte[] dv = { 0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF };
try
{
byKey = System.Text.Encoding.UTF8.GetBytes(strEncrypt.Substring(0, 8));
DESCryptoServiceProvider des = new DESCryptoServiceProvider();
byte[] inputArray = System.Text.Encoding.UTF8.GetBytes(strText);
MemoryStream ms = new MemoryStream();
CryptoStream cs = new CryptoStream(ms, des.CreateEncryptor(byKey, dv), CryptoStreamMode.Write);
cs.Write(inputArray, 0, inputArray.Length);
cs.FlushFinalBlock();
return Convert.ToBase64String(ms.ToArray());
}
catch (Exception ex)
{
throw ex;
}
}
public string encryptPassword(string strText)
{
return Encryption(strText, "&%#@?,:*");
}

public string decryptPassword(string str)
{
return Decrypt(str, "&%#@?,:*");
}
private string Decrypt(string strText, string strEncrypt)
{
byte[] bKey = new byte[20];
byte[] IV = { 0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF };
try
{
bKey = System.Text.Encoding.UTF8.GetBytes(strEncrypt.Substring(0, 8));
DESCryptoServiceProvider des = new DESCryptoServiceProvider();
Byte[] inputByteArray = inputByteArray = Convert.FromBase64String(strText);
MemoryStream ms = new MemoryStream();
CryptoStream cs = new CryptoStream(ms, des.CreateDecryptor(bKey, IV), CryptoStreamMode.Write);
cs.Write(inputByteArray, 0, inputByteArray.Length);
cs.FlushFinalBlock();
System.Text.Encoding encoding = System.Text.Encoding.UTF8;
return encoding.GetString(ms.ToArray());
}
catch (Exception ex)
{
throw ex;
}
}

Sabari MD
Application Developer
Veloxit Info Solutions

AnswerRe: How to decrypt the password Pin
Christian Graus15-Jul-09 1:18
protectorChristian Graus15-Jul-09 1:18 
GeneralRe: How to decrypt the password Pin
janani1315-Jul-09 1:35
janani1315-Jul-09 1:35 
QuestionData Binding in Custom Control Pin
pulak srivastava15-Jul-09 0:35
pulak srivastava15-Jul-09 0:35 
QuestionASP.net With Oracle Pin
sandhya1415-Jul-09 0:18
sandhya1415-Jul-09 0:18 
AnswerRe: ASP.net With Oracle Pin
Christian Graus15-Jul-09 0:41
protectorChristian Graus15-Jul-09 0:41 
AnswerRe: ASP.net With Oracle Pin
sandhya1415-Jul-09 0:58
sandhya1415-Jul-09 0:58 
GeneralRe: ASP.net With Oracle Pin
Christian Graus15-Jul-09 1:19
protectorChristian Graus15-Jul-09 1:19 
GeneralRe: ASP.net With Oracle Pin
sandhya1415-Jul-09 1:27
sandhya1415-Jul-09 1:27 
GeneralRe: ASP.net With Oracle Pin
r a m e s h15-Jul-09 1:21
r a m e s h15-Jul-09 1:21 
QuestionProblem with Ajax update panel Pin
hozsam14-Jul-09 23:40
hozsam14-Jul-09 23:40 
AnswerRe: Problem with Ajax update panel Pin
Christian Graus15-Jul-09 0:42
protectorChristian Graus15-Jul-09 0:42 
GeneralRe: Problem with Ajax update panel Pin
hozsam15-Jul-09 1:22
hozsam15-Jul-09 1:22 
Questionlistview HoverMenuExtender not working Pin
ademsandeepreddy14-Jul-09 23:07
ademsandeepreddy14-Jul-09 23:07 
QuestionRPC Server is Unavailable Pin
Sabari MD14-Jul-09 22:37
Sabari MD14-Jul-09 22:37 
AnswerRe: RPC Server is Unavailable Pin
Blue_Boy14-Jul-09 22:38
Blue_Boy14-Jul-09 22:38 
QuestionBest Method to Instantiate a Class Pin
Bardy8514-Jul-09 22:01
Bardy8514-Jul-09 22:01 
AnswerRe: Best Method to Instantiate a Class Pin
jc.net15-Jul-09 0:36
jc.net15-Jul-09 0:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.