IronLanguages / main

Work for this repo has moved to https://github.com/IronLanguages/ironpython2
1.16k stars 349 forks source link

Add support for RIPEMD160 to hashlib #1097

Open ironpythonbot opened 9 years ago

ironpythonbot commented 9 years ago

IronPython doesn't support the RIPEMD160 hashing algorithm.

RIPEMD160 is used by Bitcoin, so this means that no Bitcoin software written in Python can run under IronPython.

The following code works in CPython, but not in IronPython:

import hashlib

hash = hashlib.new("ripemd160")
hash.update("test")
print hash.hexdigest()

.NET supports RIPEMD160 - http://msdn.microsoft.com/en- us/library/system.security.cryptography.ripemd160.aspx

Work Item Details

Original CodePlex Issue: Issue 34771 Status: Proposed Reason Closed: Unassigned Assigned to: Unassigned Reported on: Dec 24, 2013 at 5:45 PM Reported by: adal Updated on: Apr 10 at 9:20 AM Updated by: jdhardy

ironpythonbot commented 9 years ago

On 2014-03-27 22:45:41 UTC, mariozski commented:

Just as a side note for this issue. RIPEMD-160 is not implemented in hashlib itself. It's implemented in OpenSSL, so it'll only available in CPython if you got openssl installed.