Skip to content

Instantly share code, notes, and snippets.

@steve-chavez
Created July 1, 2014 18:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save steve-chavez/f2cd3e280ab179ea1ed7 to your computer and use it in GitHub Desktop.
Save steve-chavez/f2cd3e280ab179ea1ed7 to your computer and use it in GitHub Desktop.
Use django hasher to make password
./manage.py shell
from django.contrib.auth.hashers import make_password, HASHERS
make_password('test')
'pbkdf2_sha256$10000$vkRy7QauoLLj$ry+3xm3YX+YrSXbri8s3EcXDIrx5ceM+xQjtpLdw2oE='
make_password('test', 'abc')
'pbkdf2_sha256$10000$abc$MqJS5OAgSmf9SD9mfoY8fgLo8sSKmEcef0AjjMp1Q7w='
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment