https://github.com/kudos/passwords
Passwords is a Python library with a standard and simple interface to cryptographic hashing functions for passwords
https://github.com/kudos/passwords
passwords pbkdf2 python
Last synced: 4 months ago
JSON representation
Passwords is a Python library with a standard and simple interface to cryptographic hashing functions for passwords
- Host: GitHub
- URL: https://github.com/kudos/passwords
- Owner: kudos
- License: isc
- Created: 2012-09-19T20:28:21.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-05-25T08:57:38.000Z (over 12 years ago)
- Last Synced: 2025-06-04T08:24:26.086Z (4 months ago)
- Topics: passwords, pbkdf2, python
- Language: Python
- Homepage:
- Size: 125 KB
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Passwords
===[](https://next.travis-ci.org/kudos/passwords)
What is it?
---
Passwords is a Python library with a standard and simple interface to cryptographic hashing functions for passwords. It uses a bundled [PBKDF2](http://en.wikipedia.org/wiki/PBKDF2) to give it no external dependancies. Credit goes to Armin Ronacher for the algorithm [implementation](https://github.com/mitsuhiko/python-pbkdf2)The strings generated contain all the information to recreate the hash from the original password. The algorithm used, the cost factor, the salt and the resulting password hash.
Why?
---
This is an attempt to make it easier for developers to find and use a cryptographic library suitable for password storage.Usage
---
import passwordspassword = "god"
password_hash = passwords.crypt(password)
# '$pbkdf2-256-1$8$ndzIsQl2gH4R46d7BCzkWA1K909904c2fe5c48ea1b0bf64caf35663987e871628c5cdbfb'
passwords.verify(password, password_hash) # True