"PEP 247 -- API for Cryptographic Hash Functions" specifies a standard API for hashing modules.
new([string]) ... the optional 'string' parameter, if supplied, will be immediately hashed into the object's starting state, as if obj.update(string) was called. But hashlib.new() takes the algorithm name... Does PEP need an update? By the way, I am thinking about mapping .NET's System.Security.Cryptography.HashAlgorithm.Create and created object's ComputeHash method to Python's hash API for IronPython. For that, I'd like to see a clarification. Seo Sanghyeon _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com