mirror of
https://gitlab.science.ru.nl/technicie/MarietjeDjango.git
synced 2025-12-09 22:12:22 +01:00
12 lines
329 B
Python
12 lines
329 B
Python
import getpass
|
|
from django.core.management.base import BaseCommand
|
|
from django.contrib.auth.hashers import make_password
|
|
|
|
|
|
class Command(BaseCommand):
|
|
help = 'Generate hash for a password (or player token).'
|
|
|
|
def handle(self, *args, **options):
|
|
password = getpass.getpass()
|
|
print(make_password(password))
|