Skip to main content

get_cookie_signer

Returns a Signer instance configured for cookie signing using the specified salt, the configured signing backend, and keys derived from the application's secret settings.

def get_cookie_signer(
salt: string = django.core.signing.get_cookie_signer
) - > Signer

Returns a Signer instance configured for cookie signing using the project's signing backend and secret keys.

Parameters

NameTypeDescription
saltstring = django.core.signing.get_cookie_signerA salt value used to provide additional entropy and namespace the signed cookie data.

Returns

TypeDescription
SignerA Signer object initialized with the primary secret key, fallback keys for rotation, and the specified salt.