authentik.lib.utils.crypto

Cryptographic helpers.

 1"""Cryptographic helpers."""
 2
 3from hashlib import sha512
 4
 5from django.conf import settings
 6
 7
 8def get_cookie_signing_key() -> str:
 9    """Return the shared signing key for authentik's JWT-backed cookies."""
10    return sha512(settings.SECRET_KEY.encode()).hexdigest()