System.Security.Cryptography.HashAlgorithm.Clear C# (CSharp) Method

Clear() public method

public Clear ( ) : void
return void
        public void Clear()
        {
            (this as IDisposable).Dispose();
        }

Usage Example

Beispiel #1
0
 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));
 }
All Usage Examples Of System.Security.Cryptography.HashAlgorithm::Clear