Skip to main content

PBKDF2 implementation for Python [work in progress]

PBKDF2 (Password-Based Key Derivation Function 2) https://en.wikipedia.org/wiki/PBKDF2

pypbkdf2 CI

USAGE

Install

TODO

pip install ****
  • Hash a Password
import pypbkdf2

p = pypbkdf2.PyPBKDF2(salt_size=20)
res = p.hash_password('12345')
cipher_text = res[0]
salt = res[1]

# save this two into your Database
print(cipher_text)
print(salt)
  • Verify a Password
import pypbkdf2

p = pypbkdf2.PyPBKDF2(salt_size=20)
res = p.hash_password('12345')
cipher_text = res[0]
salt = res[1]

valid = p.verify_password('12345', cipher_text, salt)

print(valid) # True

Doc

TODO

x-compat 2021

Metadata

Release files for py-pbkdf2 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py-pbkdf2 1.0.0
File Size Uploaded
py-pbkdf2-1.0.0.tar.gz 3.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for py-pbkdf2 1.0.0
File Interpreter ABI Platform
py_pbkdf2-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.4 kB

Release files / py-pbkdf2-1.0.0.tar.gz

Download URL py-pbkdf2-1.0.0.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e9ab27acd7a733dbc2205f2b366a47744e4d5d8f511b737d5eb58969fd0a795a
BLAKE2b-256 checksum
How to use checksums
2a405a35e6f38332434303fc0af46eb667acb1595bd041bc9f2d10f9d0e14942
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.4

Release files / py_pbkdf2-1.0.0-py3-none-any.whl

Download URL py_pbkdf2-1.0.0-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
48cfc9fd3484222156725e8a218c1769d0bf044ca372acd62af896ae20fcb1e0
BLAKE2b-256 checksum
How to use checksums
33e53a8fe298438a5ee1aa0f81d2a03845b3778b189b01679af111dce80c9e45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.4

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page