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-1.0.tar.gz
(4.8 kB
view details)
Built Distribution
File details
Details for the file pbkdf2-reboot-1.0.tar.gz
.
File metadata
- Download URL: pbkdf2-reboot-1.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55dc3eec9d54495315dc147fe14723aaaade14596d4aa6ea63547ea703980449 |
|
MD5 | acec5298ba670c032cde0a3b36311497 |
|
BLAKE2b-256 | 5b5424cc227b866053baaca6deb561ae5b78d2eb252354a62c746f413c118aa9 |
File details
Details for the file pbkdf2_reboot-1.0-py3-none-any.whl
.
File metadata
- Download URL: pbkdf2_reboot-1.0-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 470f3f5bde6e9fa37b7d14acf464c4144281dc097a8ae914583a433c6e38352a |
|
MD5 | 6c0a25342a3ab8a20fc734f9692bc3d3 |
|
BLAKE2b-256 | 5e70139d68cd689d13e561e289b122a4dd5c4326838a575a9fffd566f4f9559b |