sha.py 393 B

123456789101112131415
  1. # $Id$
  2. #
  3. # Copyright (C) 2005 Gregory P. Smith (greg@krypto.org)
  4. # Licensed to PSF under a Contributor Agreement.
  5. import warnings
  6. warnings.warn("the sha module is deprecated; use the hashlib module instead",
  7. DeprecationWarning, 2)
  8. from hashlib import sha1 as sha
  9. new = sha
  10. blocksize = 1 # legacy value (wrong in any useful sense)
  11. digest_size = 20
  12. digestsize = 20