https://github.com/dotpot/crypton
PBKDF2 implementation in python.
https://github.com/dotpot/crypton
Last synced: 5 months ago
JSON representation
PBKDF2 implementation in python.
- Host: GitHub
- URL: https://github.com/dotpot/crypton
- Owner: dotpot
- Created: 2012-03-20T08:07:25.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2012-03-20T08:23:33.000Z (about 14 years ago)
- Last Synced: 2025-04-22T09:44:44.635Z (about 1 year ago)
- Language: Python
- Size: 97.7 KB
- Stars: 13
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#Crypton
PBKDF2 implementation in pyton.
Original package is [here](http://pypi.python.org/pypi/pbkdf2).
The idea to create this rep. came from [this article](http://www.unlimitednovelty.com/2012/03/dont-use-bcrypt.html)
**Or you can use [PassLib](http://packages.python.org/passlib/)**
##Usage
from pbkdf2 import crypt
pwhash = crypt("secret")
print pwhash
alleged_pw = raw_input("Enter password: ")
print crypt(alleged_pw, pwhash)
if pwhash == crypt(alleged_pw, pwhash):
print "Password good"
else:
print "Invalid password"
### Please feel free to improve it if you like :)
