Skip to main content

decrypt_token

Function decrypt_token 

Source
pub fn decrypt_token(encrypted: &str, secret: &str) -> Result<String, AuthError>
Expand description

Decrypt a base64-encoded nonce || ciphertext string using AES-256-GCM.