pbkdf2 implementation in modern python with typing support.
Project description
PBKDF2 reboot
A modern Python 3 library for PBKDF2 password hashing.
The library code is derived from the original Python 2 library python-pbkdf2 that hasn't been updated for 11 years. The main purpose of this library is to provide a more in-time version with typing support.
Usage
>>> from pbkdf2 import crypt
>>> pbkdf2.crypt('password', 'salt', iterations=1000)
'$p5k2$3e8$salt$8U24fPYH1KBtWqbN5ibra6gQR2ZV864RD1qpxeEVv/Q='
>>> from hashlib import sha3_512
>>> from pbkdf2 import PBKDF2
>>> p = PBKDF2('password', 'salt', iterations=1000, digest_module=sha3_512)
>>> p.read_hex(64)
'e697001cf40fe4623eb67df2ddab791a499451234957133097deffce766fc9839e4642de2a1cfea8307d98bde6995bab8cf70453dc8eab92fcba0a02a2ae026e'
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
pbkdf2-reboot-0.0.0.tar.gz
(4.8 kB
view hashes)
Built Distribution
Close
Hashes for pbkdf2_reboot-0.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69b64a3d5c62580f7a9c92f59c2b3eaf566a836a551f7faaa483ccb232db5203 |
|
MD5 | 005102884ca2b4f0a4ad01b8431cc42f |
|
BLAKE2b-256 | 63406382e8560e4a53eafa294e628a906e57c87be7835e38d49191aee62f0540 |