public override void Initialize()
{
// Nothing to do here. We expect HashAlgorithm to invoke HashFinal() and Initialize() as a pair. This reflects the
// reality that our native crypto providers (e.g. CNG) expose hash finalization and object reinitialization as an atomic operation.
}
public string MakePassword(string Password) { string Sha_Password = ""; SHA1CryptoServiceProvider Crypto = new SHA1CryptoServiceProvider(); Crypto.Initialize(); byte[] Result = Crypto.ComputeHash(Encoding.UTF8.GetBytes(Password), 0, Encoding.UTF8.GetByteCount(Password)); Sha_Password = BitConverter.ToString(Result).Replace("-",string.Empty).ToLower(); return Sha_Password; }