md5.py 358 B

1234567891011121314
  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 md5 module is deprecated; use hashlib instead",
  7. DeprecationWarning, 2)
  8. from hashlib import md5
  9. new = md5
  10. blocksize = 1 # legacy value (wrong in any useful sense)
  11. digest_size = 16