Exemplo n.º 1
0
 /// <summary>
 /// Computes a hash using the configured <c>HashAlgorithm</c>.
 /// <seealso cref="IHashProvider.CreateHash"/>
 /// </summary>
 /// <param name="plaintext"><seealso cref="IHashProvider.CreateHash"/></param>
 /// <returns><seealso cref="IHashProvider.CreateHash"/></returns>
 public byte[] CreateHash(byte[] plaintext)
 {
     byte[] hash = CreateHashWithSalt(plaintext, null);
     SecurityCryptoHashCreateEvent.Fire(string.Empty);
     return(hash);
 }
Exemplo n.º 2
0
 private void FireSecurityCryptoHashCreateEvent()
 {
     SecurityCryptoHashCreateEvent.Fire(testMessage);
 }
 private void FireSecurityCryptoHashCreateEvent()
 {
     SecurityCryptoHashCreateEvent.Fire("test");
 }