PureHash
Pure Python implementations of common hashing algorithms.
Installation
pip install purehash
Usage
Usage is similar to that of hashlib, for example:
import purehash
m = purehash.md5(b"The quick brown fox ")
m.update(b"jumps over the lazy dog.")
m.digest() # b"\xe4\xd9\t\xc2\x90\xd0\xfb\x1c\xa0h\xff\xad\xdf"\xcb\xd0"
m.hexdigest() # "e4d909c290d0fb1ca068ffaddf22cbd0"
Supported Hash Algorithms
- MD5 (
md5) - SHA-1 (
sha1) - SHA-256 (
sha256) - SHA-512 (
sha512)
Release files for purehash 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| purehash-1.1.0.tar.gz | 8.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| purehash-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.0 kB
Release files / purehash-1.1.0.tar.gz
| Download URL | purehash-1.1.0.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a6f244f0a92abd0507ecca608b3651be332996abc710adbd6e4ee668fb45be83
|
|
BLAKE2b-256 checksum How to use checksums |
b9aca3d5b14b30ecc7a65568d671f878857896edc595ff2e012bf5e4c1465324
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.2
|
Release files / purehash-1.1.0-py3-none-any.whl
| Download URL | purehash-1.1.0-py3-none-any.whl |
|---|---|
| Size | 16.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
514e8f4961c3e665e77a976dd4d0273ab81a193ae56a942f65f956f142011c6e
|
|
BLAKE2b-256 checksum How to use checksums |
ee2dbeef5d2b10012ee916a6c7ce7c89f0022ab6ac2a29410d0684056d434011
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.2
|