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 details)
Built Distribution
File details
Details for the file hashers-0.2.2.tar.gz
.
File metadata
- Download URL: hashers-0.2.2.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b8e80dd18a87bd961835cd45bafe4a3ab8841167757908a669992be20eac0c5 |
|
MD5 | 70706207a4cddd0d07265ecb7a7a1f24 |
|
BLAKE2b-256 | 8831369fb7c9715d0cde8e6f32df9cecde7db39fc683c0606d08d310fb3b48c4 |
File details
Details for the file hashers-0.2.2-cp36-abi3-manylinux2010_x86_64.whl
.
File metadata
- Download URL: hashers-0.2.2-cp36-abi3-manylinux2010_x86_64.whl
- Upload date:
- Size: 635.8 kB
- Tags: CPython 3.6+, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a727304078fdbb78a182859b63f14e123769e1c04b03b56b191591a702ef0bd6 |
|
MD5 | 040f0c4bf54acbaa085e3efb4838ce9f |
|
BLAKE2b-256 | 168959bd47e1d61969e8fc980ef355e7af0179da54da0384d586d0ac2d874ab3 |