Skip to content

Uses a cryptographically secure pseudorandom number generator from sodium::helpers() to generate a 64 digit hexadecimal string. 'sodium' wraps around 'libsodium'.

Usage

random_cookie_key()

Value

A 64 digit hexadecimal string to be used as a key for cookie encryption.

Details

Please see session_cookie for more information on how to save the generated key.

See also