std.digest.sha

  • Computes SHA1 and SHA2 hashes of arbitrary data. SHA hashes are 20 to 64 byte
  • quantities (depending on the SHA algorithm) that are like a checksum or CRC,
  • but are more robust. *

Category Functions
Template API SHA1 

OOP API SHA1Digest 
Helpers sha1Of 

  • SHA2 comes in several different versions, all supported by this module:
  • SHA-224, SHA-256, SHA-384, SHA-512, SHA-512/224 and SHA-512/256.
  • This module conforms to the APIs defined in std.digest. To understand the
  • differences between the template and the OOP API, see std.digest.
  • This module publicly imports std.digest and can be used as a stand-alone
  • module.

    License

  • CTFE:
  • Digests do not work in CTFE

    Authors

    The routines and algorithms are derived from the
  • Secure Hash Signature Standard (SHS) (FIPS PUB 180-2).
  • Kai Nacke, Johannes Pfau, Nick Sabalausky
  • References:
  • Source: std/digest/sha.d