DECRYPTING Data?
Hi
I want to encrypt and decrypt data, and in one of ASP.net Starter Kits, i found that you can encrypt using the following method:
public static string Encrypt(string cleanString)
{
Byte[] clearBytes = new UnicodeEncoding().GetBytes(cleanString);
Byte[] hashedBytes = ((HashAlgorithm)CryptoConfig.CreateFromName("MD5") ).ComputeHash(clearBytes);
return BitConverter.ToString(hashedBytes);
}
string EncryptedData = Encrypt(CleanData);
My problem is that i cannot decrypt the data, anyone has any ideas?
|