Skip to content

utils

django_spire.file.utils

random_64_char_token

Source code in django_spire/file/utils.py
def random_64_char_token() -> str:
    return str(binascii.hexlify(os.urandom(32)).decode())