md5.py 358 Bytes
Newer Older
1 2
# $Id$
#
Gregory P. Smith's avatar
Gregory P. Smith committed
3
#  Copyright (C) 2005   Gregory P. Smith (greg@krypto.org)
4 5
#  Licensed to PSF under a Contributor Agreement.

6 7 8 9
import warnings
warnings.warn("the md5 module is deprecated; use hashlib instead",
                DeprecationWarning, 2)

10 11 12 13 14
from hashlib import md5
new = md5

blocksize = 1        # legacy value (wrong in any useful sense)
digest_size = 16