Ripemd library for Python
Project description
Ripemd
Given headache openssl devs gave to everyone, this is tiny ripemd module for python 3. Shamelessly stolen extracted from pycryptodome.
Usage
Single call:
from ripemd.ripemd160 import ripemd160 # import function
ripemd160(b'abc').hex() == '8eb208f7e05d987a9b044a8e98c6b087f15a0bfc'
ripemd160(b'a' * 1000000).hex() == '52783243c1697bdbe16d37f97f68f08325dc1528'
Update mode:
from ripemd import ripemd160 # import module
h = ripemd160.new()
h.update(b'abc')
h.digest().hex() == '8eb208f7e05d987a9b044a8e98c6b087f15a0bfc'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ripemd-hash-1.0.1.tar.gz
(18.7 kB
view details)
File details
Details for the file ripemd-hash-1.0.1.tar.gz
.
File metadata
- Download URL: ripemd-hash-1.0.1.tar.gz
- Upload date:
- Size: 18.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | de2fdacca95e262ce1338e5595c20195ec51bef04732041e9c16789ec8254f3f |
|
MD5 | 343cf1d0f406330ba4fdd89a1917bcfb |
|
BLAKE2b-256 | 7322f95f4dd50f1e1352d73c97c61291b8ef6f904c991e2cec1e8b384868cb04 |