Sha0()
Description
Returns 40 hexadecimal characters which represent a 160-bit cryptographically secure hash of string.
This hash can also be described as a signature, fingerprint, or digest. sha0() implements SHA-0 as described in FIPS 180 (now withdrawn).
Related Topics: crc32(), digest(), sha1(), unpack().
Examples
- > think sha0(abc)
- 0164b8a914cd2a5e74c4f7ff082c4d97f1edf880
- > think sha0(abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq)
- d2516ee1acfa5baf33dfc1c471e438449ef134c8
Server Differences
TinyMUX provides sha1() instead of sha0(). As SHA was being adopted as a standard, it was also being implemented and deployed. SHA-0 is the submitted version and the version adopted in FIPS 180. It is also a de-facto standard in that it has been deployed. FIPS 180 was withdrawn shortly after publication. SHA-1 is the current version adopted in FIPS 180-1 and FIPS 180-2. To obtain SHA-0 on TinyMUX, use the sha algorithm in digest(). SHA-0 and SHA-1 are both available from digest().
TinyMUX hashes contain upper-case letters while PennMUSH produces lower-case letters.