SHA-2 is a family of cryptographic hash functions designed by the NSA and published by NIST in 2001. The family includes various output lengths (224, 256, 384, and 512 bits). The SHA-2 family will eventually be replaced by the winner of NIST's hash function competition.