Function webcryptobox::generate_key
source · pub fn generate_key() -> Result<Vec<u8>, ErrorStack>
Expand description
Generate AES key material to be used with encrypt
and decrypt
.
§Example:
let key = webcryptobox::generate_key();
pub fn generate_key() -> Result<Vec<u8>, ErrorStack>
Generate AES key material to be used with encrypt
and decrypt
.
let key = webcryptobox::generate_key();