The Secure Hash Algorithm (SHA) is a mining algorithm in cryptography. It is a hash function programmed by the National Security Agency of the U.S.