Author: Admin 03/30/2021
This is the SHA512 HASH using the System.Security.Cryptography.HashAlgorithm.
Computes the SHA512 hash for the input data.
public abstract class SHA512 : System.Security.Cryptography.HashAlgorithm
The following example computes the SHA512 hash for
data and stores it in
result. This example assumes that there is a predefined constant
byte data = new byte[DATA_SIZE]; byte result; SHA512 shaM = new SHA512Managed(); result = shaM.ComputeHash(data);
The hash is used as a unique value of fixed size representing a large amount of data. Hashes of two sets of data should match if and only if the corresponding data also matches. Small changes to the data result in large unpredictable changes in the hash.
The hash size for the SHA512 algorithm is 512 bits.
This is an abstract class. The only implementation of this class is SHA512Managed.