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.2.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for hashers-0.2.2-cp36-abi3-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a727304078fdbb78a182859b63f14e123769e1c04b03b56b191591a702ef0bd6 |
|
MD5 | 040f0c4bf54acbaa085e3efb4838ce9f |
|
BLAKE2b-256 | 168959bd47e1d61969e8fc980ef355e7af0179da54da0384d586d0ac2d874ab3 |