File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11\section {\module {sha} ---
2- SHA message digest algorithm }
2+ SHA-1 message digest algorithm }
33
44\declaremodule {builtin}{sha}
55\modulesynopsis {NIST's secure hash algorithm, SHA.}
66\sectionauthor {Fred L. Drake, Jr.}{
[email protected] }
77
88
99This module implements the interface to NIST's\index {NIST} secure hash
10- algorithm,\index {Secure Hash Algorithm} known as SHA. It is used in
10+ algorithm,\index {Secure Hash Algorithm} known as SHA-1. SHA-1 is an
11+ improved version of the original SHA hash algorithm. It is used in
1112the same way as the \refmodule {md5} module:\ use \function {new()}
1213to create an sha object, then feed this object with arbitrary strings
1314using the \method {update()} method, and at any point you can ask it
1415for the \dfn {digest} of the concatenation of the strings fed to it
15- so far.\index {checksum!SHA} SHA digests are 160 bits instead of
16+ so far.\index {checksum!SHA} SHA-1 digests are 160 bits instead of
1617MD5's 128 bits.
1718
1819
You can’t perform that action at this time.
0 commit comments