Whilch Column Type to use?
I need to store encrypted data that uses SHA1 encryption. The function looks like:
_________________________________________________________________
public byte[] EncryptPassword(string password)
{
UnicodeEncoding encoding = new UnicodeEncoding();
byte[] hashBytes = encoding.GetBytes(password);
SHA1 sha1 = new SHA1CryptoServiceProvider();
byte[] encryptPassword = sha1.ComputeHash(hashBytes);
return encryptPassword;
}
__________________________________________________________________
So, what Column Type should I use in my table, and what MySqlDbType should I use with my command parameter?
TIA
Michael
Subject
Written By
Posted
Whilch Column Type to use?
January 16, 2005 04:09PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.