pub fn gen_master_key() -> Protected<[u8; 32]>Expand description
Generates a new protected master key of the specified MASTER_KEY_LEN.
This can be used to generate a master key for encryption.
It uses ThreadRng to securely generate completely random bytes, with extra protection
from some side-channel attacks
ยงExamples
let master_key = gen_master_key();