rfc.sha- SHA message digest
This module implements US Secure Hash Algorithm defined in RFC 4634. It provides SHA-1, SHA-224, SHA-256, SHA-384 and SHA-512 (the latter four are sometimes referred as SHA-2 collectively).
The module extends util.digest (see Message digester framework).
This is the old module that provided only SHA-1. It is kept as
an alias of
rfc.sha for the backward compatibility. New code
An instance of these class keeps internal state of SHA digest algorithm.
This class implements
util.digest framework interface,
See Message digester framework, for detailed explanation
of these methods.
Besides the digester framework, this module provides to short-cut procedures.
Reads data from the current input port until EOF, and returns its digest in an incomplete string.
Digest the data in string, and returns the result in an incomplete string.