SHA-2 (
Secure Hash Algorithm 2) is a set of
cryptographic hash functions designed by the
NSA. SHA stands for
Secure Hash Algorithm. Cryptographic hash functions are mathematical operations run on digital data; by comparing the computed "hash" (the output from execution of the algorithm) to a known and expected hash value, a person can determine the data's integrity. For example, computing the hash of a downloaded file and comparing the result to a previously published hash result can show whether the download has been modified or tampered with. A key aspect of cryptographic hash functions is their
collision resistance: nobody should be able to find two different input values that result in the same hash output.