passing Query string (Encryption and Decryption)

Posted by Saritha.rajeshkumar under C# on 5/20/2011 | Points: 10 | Views : 4725 | Status : [Member] | Replies : 3
hi
iam working on passing Query string. am getting the error (CS0246: The type or namespace name 'QueryStringEncryption' could not be found (are you missing a using directive or an assembly reference?))




Responses

Posted by: A4u6178 on: 5/20/2011 [Member] Starter | Points: 25

Up
0
Down
Hi,


You can refer the following link:
http://devcity.net/articles/47/1/encrypt_querystring.aspx

Thanks & Regards;
aaa

Saritha.rajeshkumar, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Susanthampy on: 5/20/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down

Posted by: Susanthampy on: 5/20/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Try this,



 private string EncodeString(int s)

{
byte[] b = System.Text.Encoding.Default.GetBytes(s.ToString());
return Convert.ToBase64String(b, 0, b.Length);
}
private string DecodeString(string s)
{
byte[] b = Convert.FromBase64String(s);
return System.Text.Encoding.Default.GetString(b);
}




Regards,
Susan

Saritha.rajeshkumar, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response