Function decrypt_code_from_storage
Source pub fn decrypt_code_from_storage(
storage_key: &[u8; 32],
encrypted: &str,
) -> Result<String>
Expand description
Decrypt a code from database storage.
§Arguments
storage_key - 32-byte storage encryption key
encrypted - Base64-encoded ciphertext
§Returns
The decrypted promotional code