An open API service indexing awesome lists of open source software.

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.

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 :)

![image](http://img193.imageshack.us/img193/5605/tumblrlznr805hcb1r3zat8.png)