sysmonk::constant

Function fernet_object

source
pub fn fernet_object() -> Arc<Fernet>
Expand description

Create a Fernet object to encrypt and decrypt session token.

Generates a random key, that can be safely passed to Fernet::new()

ยงReturns

Returns the constructed Arc for the Fernet instance, with the generated key.