Password hashing library in Python using Rust backend
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.1.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for hashers-0.2.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0818ab7de95f7cf147f89422a6718a22bb94b87d2a980fa643b215e94e30cd9f |
|
MD5 | bd6c3eaf9907d7a05cd1f55909914066 |
|
BLAKE2b-256 | cca54f3f3e1b0eca3cce2cd4c6e2608d8305f8cc6aadbc7edb978e87d31d7b7a |