Author: pankajsingh5k | Posted on: 8/7/2009 3:12:24 AM | Views : 421

Hi everybody,
In my website i want to send a user id as a querystring varaiable  in the email when he/sh registers on my site...
i found this peice of code on the internet that allowed to me to encrypt the number using this functionPrivate Shared KEY_64() As Byte = {32, 45, 4, 46, 48, 40, 214, 32} Private Shared IV_64() As Byte = {43, 54, 26, 29, 46, 90, 167, 3} Public Shared Function Encrypt(ByVal value As String) As String If value <> "" Then Dim cryptoProvider As DESCryptoServiceProvider = _ New DESCryptoServiceProvider() Dim ms As MemoryStream = New MemoryStream() Dim cs As CryptoStream = _ New CryptoStream(ms, cryptoProvider.CreateEncryptor(KEY_64, IV_64), _ CryptoStreamMode.Write) Dim sw As StreamWriter = New StreamWriter(cs) sw.Write(value) sw.Flush() ...

Go to the complete details ...