Click or drag to resize

Hash Class

Helper function for generating a one-way hash from a string.
Examples
string sensitiveData = "123456789";
mapper.Fields["external_id"].Value = NetQuarry.Security.Hash.ToSHA256(sensitiveData, "1PUnrmSiicHQLl+S3nOaWnivmjk=");
Inheritance Hierarchy
SystemObject
  NetQuarry.SecurityHash

Namespace:  NetQuarry.Security
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public static class Hash

The Hash type exposes the following members.

Methods
  NameDescription
Public methodStatic memberToMD5
Computes the hash value for the specified phrase. The hash size for the SHA512 algorithm is 128 bits.
Public methodStatic memberToRIPEMD160
Computes the hash value for the specified phrase. RIPEMD-160 is a 160-bit cryptographic hash function. It is intended for use as a replacement for the 128-bit hash functions MD4, MD5, and RIPEMD.
Public methodStatic memberToSHA1
Computes the hash value for the specified phrase. The hash size for the SHA512 algorithm is 160 bits.
Public methodStatic memberToSHA256
Computes the hash value for the specified phrase. The hash size for the SHA512 algorithm is 256 bits.
Public methodStatic memberToSHA384
Computes the hash value for the specified phrase. The hash size for the SHA512 algorithm is 384 bits.
Public methodStatic memberToSHA512
Computes the hash value for the specified phrase. The hash size for the SHA512 algorithm is 512 bits.
Top
See Also