| 2 | |
| 3 | See below: |
| 4 | |
| 5 | |
| 6 | {{{ |
| 7 | $ python3 |
| 8 | Python 3.10.0 (default, Nov 7 2021, 21:08:03) [Clang 12.0.5 (clang-1205.0.22.11)] on darwin |
| 9 | Type "help", "copyright", "credits" or "license" for more information. |
| 10 | >>> import hashlib |
| 11 | >>> hashlib.algorithms_available |
| 12 | {'sha512_224', 'ripemd160', 'md5-sha1', 'sha1', 'shake_128', 'shake_256', 'sha512_256', 'sha256', 'whirlpool', 'blake2b', 'sha3_512', 'sha384', 'sm3', 'blake2s', 'sha3_224', 'sha224', 'mdc2', 'md4', 'md5', 'sha3_256', 'sha3_384', 'sha512'} |
| 13 | >>> hashlib.new('ripemd160') |
| 14 | Traceback (most recent call last): |
| 15 | File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/hashlib.py", line 160, in __hash_new |
| 16 | return _hashlib.new(name, data, **kwargs) |
| 17 | ValueError: [digital envelope routines] initialization error |
| 18 | |
| 19 | During handling of the above exception, another exception occurred: |
| 20 | |
| 21 | Traceback (most recent call last): |
| 22 | File "<stdin>", line 1, in <module> |
| 23 | File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/hashlib.py", line 166, in __hash_new |
| 24 | return __get_builtin_constructor(name)(data) |
| 25 | File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/hashlib.py", line 123, in __get_builtin_constructor |
| 26 | raise ValueError('unsupported hash type ' + name) |
| 27 | ValueError: unsupported hash type ripemd160 |
| 28 | |
| 29 | }}} |