Advertisement
2_2002-2004 Miscellaneous #120132

Secure Hash Algorithm SHA-1

The function SecureHash generates a 160-bit (20-hex-digit) message digest for a given message (String) of any length. The digest is unique to the message. It is not possible to recover the message from the digest. The only way to find the source message for a digest is by the brute force hashing of all possible messages and comparison of their digests. For a complete description see FIPS Publication 180-1: http://www.itl.nist.gov/fipspubs/fip180-1.htm (HTML version) http://csrc.nist.gov/fips/fip180-1.txt (plain text version) I wrote this a few months ago, prior to recent PSC submissions describing how to use Internet Explorer's hashing functions (in advapi32.dll). It is present here solely for your edificaton and entertainment.

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
Upload
Original Comments (3)
Recovered from Wayback Machine