A fast UUID generator for Python using Rust
Project description
Hashers
A password encoding/hasing library for Python using Djangohashers Rust crate.
Installation
pip3 install hashers
Available APIs
def hashpw(password: str, algorithm: str) -> str
def hashpw_with_salt(password: str, salt: str, algorithm: str) -> str
def chk_password(password: str, hashpw: str) -> bool
Examples
>> from hashers import hashpw, hashpw_with_salt, chk_password
>> encoded_pass_1 = hashpw("password123", "blake2")
>> encoded_pass_2 = hashpw_with_salt("password123", "sdpql", "blake2")
>> chk_password(encoded_pass_1, "password123")
Available algorithms:
- Argon2
- BCrypt
- PBKDF2 (Default)
- PBKDF2SHA1
- BCryptSHA256
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
hashers-0.2.0.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for hashers-0.2.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ad4cf19273b8d2128b567d93e9374095aa5a9cc34d2fbc9b7c5c73da36059b0 |
|
MD5 | ea2d6a33a6bf0f09e97d578a2814c5d2 |
|
BLAKE2b-256 | e9fc8ac8483b9c5a5e909c2a3d68269763792809d7793df7327c9d7a48418ffb |