SHA1 Encryption/Decryption help
Hi:
Can someone help me in decrypting a string that has been encrypted in the manner below?:
=== Start Encryption ===
public static byte[] EncryptPassword(string password)
{
UnicodeEncoding encoding = new UnicodeEncoding();
byte[] hashBytes = encoding.GetBytes( password );
// compute SHA-1 hash.
SHA1 sha1 = new SHA1CryptoServiceProvider();
byte[] cryptPassword = sha1.ComputeHash ( hashBytes );
return cryptPassword;
}
=== End Encryption ===
|