Skip to content
This repository has been archived by the owner on Sep 21, 2023. It is now read-only.

coreos/resumablehashlib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

                           hashlib
                          20060408a
           Python secure hash and message digest module
           MD5, SHA1, SHA224, SHA256, SHA384 and SHA512
        (backported from Python 2.5 for use on 2.3 and 2.4)

BUILDING

  python setup.py build [options]

  Valid options:
    --openssl-prefix=path, --openssl-incdir=path, --openssl-libdir=path

  If OpenSSL 0.9.7 or later is found it will be used.  Version
  0.9.8 is preferred as it provides many more optimized algorithms.
  OpenSSL is not required.

INSTALLING

  python setup.py install

USAGE

  Use the following hash object constructors:

    md5, sha1, sha224, sha256, sha384, and sha512

  Hash objects have update, copy, digest, and hexdigest methods.

    >>> x = hashlib.sha224('spam')
    >>> x.hexdigest()
    'e047c44d875407fdb49d53d8b2326fc3e20e27f08434fef1275a3981'
    >>> y = x.copy()
    >>> y.update(' and eggs')
    >>> y.hexdigest()
    '1c54f569f9b5c7cec6a34465de51df10b0048f3d48f7051ac6eb2e54'

DOCUMENTATION

Real documentation for this module can be found in at least
one of these locations:

  http://docs.python.org/dev/lib/module-hashlib.html
  http://docs.python.org/lib/module-hashlib.html
  http://www.python.org/doc/2.5/lib/module-hashlib.html

Happy hashing!

Gregory P. Smith  ..  greg at krypto dot org

LICENSE

 "PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2"

Read the LICENSE file.

The following MAY apply to binary packages of this module if they are linked
with OpenSSL.  Read LICENSE.openssl file.

 "This product includes software developed by the OpenSSL Project
  for use in the OpenSSL Toolkit. (http://www.openssl.org/)"

About

A fork of the backported hashlib library, which allows the sha256 state to be exported and imported, for resumable hashing.

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published