Skip to main content

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


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)

Uploaded Source

Built Distribution

hashers-0.2.2-cp36-abi3-manylinux2010_x86_64.whl (635.8 kB view hashes)

Uploaded CPython 3.6+ manylinux: glibc 2.12+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page