Pure Python implementations of common hashing algorithms.
Project description
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)
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
purehash-1.1.0.tar.gz
(8.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
purehash-1.1.0-py3-none-any.whl
(16.3 kB
view details)
File details
Details for the file purehash-1.1.0.tar.gz.
File metadata
- Download URL: purehash-1.1.0.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6f244f0a92abd0507ecca608b3651be332996abc710adbd6e4ee668fb45be83
|
|
| MD5 |
caae447e2ffc0bed557b7f9c754b9281
|
|
| BLAKE2b-256 |
b9aca3d5b14b30ecc7a65568d671f878857896edc595ff2e012bf5e4c1465324
|
File details
Details for the file purehash-1.1.0-py3-none-any.whl.
File metadata
- Download URL: purehash-1.1.0-py3-none-any.whl
- Upload date:
- Size: 16.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
514e8f4961c3e665e77a976dd4d0273ab81a193ae56a942f65f956f142011c6e
|
|
| MD5 |
09245fdc83e660116fee5ae80805b7cd
|
|
| BLAKE2b-256 |
ee2dbeef5d2b10012ee916a6c7ce7c89f0022ab6ac2a29410d0684056d434011
|