-
-
Save skyl/0c6430499c46129398c4b8ac0e20e9ea to your computer and use it in GitHub Desktop.
Use django hasher to make password
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# you have to have a django project to do it this way | |
# You can run this in a `./manage.py shell` | |
from django.contrib.auth.hashers import make_password | |
make_password("youreverysecuresuperpass") | |
# this will output something that looks like this: | |
# 'pbkdf2_sha256$260000$rgjSFB3xwsxkfcL1iE8wq6$bDtiRY0+gtE4ahFdfDeHwy0tzLb8McDRnppS8kD8QJs=' | |
# by default in Django 4.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment