public void Clear()
{
(this as IDisposable).Dispose();
}
private string HashText(string text, string salt, System.Security.Cryptography.HashAlgorithm hash) { byte[] textWithSaltBytes = Encoding.UTF8.GetBytes(string.Concat(text, salt)); byte[] hashedBytes = hash.ComputeHash(textWithSaltBytes); hash.Clear(); return(Convert.ToBase64String(hashedBytes)); }