From f21a5f773964d34c7b6deb7e3d753fae2b9c70e2 Mon Sep 17 00:00:00 2001 From: "Gregory P. Smith" Date: Sun, 21 Aug 2005 18:45:59 +0000 Subject: [ sf.net patch # 1121611 ] A new hashlib module to replace the md5 and sha modules. It adds support for additional secure hashes such as SHA-256 and SHA-512. The hashlib module uses OpenSSL for fast platform optimized implementations of algorithms when available. The old md5 and sha modules still exist as wrappers around hashlib to preserve backwards compatibility. --- Lib/md5.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Lib/md5.py (limited to 'Lib/md5.py') diff --git a/Lib/md5.py b/Lib/md5.py new file mode 100644 index 0000000000..bbe1984d14 --- /dev/null +++ b/Lib/md5.py @@ -0,0 +1,10 @@ +# $Id$ +# +# Copyright (C) 2005 Gregory P. Smith (greg@electricrain.com) +# Licensed to PSF under a Contributor Agreement. + +from hashlib import md5 +new = md5 + +blocksize = 1 # legacy value (wrong in any useful sense) +digest_size = 16 -- cgit v1.2.1