[][src]Module sputnik::security

CsrfToken, Key and functions to encode & decode expiring claims.

Structs

CsrfToken

A cookie-based CSRF token to be used with crate::request::Body::into_form_csrf.

Key

A convenience wrapper around HMAC.

Functions

decode_expiring_claim

Extract the string, failing if the expiry date is in the past.

encode_expiring_claim

Join a string and an expiry date together into a string.