Skip to main content

decrypt

Function decrypt 

Source
pub fn decrypt(key: &[u8; 32], value: &str) -> Result<String>
Expand description

Decrypt an enc:v1:<hex> string. Returns an error if the value is not a recognised encrypted blob (callers can detect plaintext via is_encrypted).