pub fn new() -> Self {
        let sk = secretbox::gen_key();
        Self {
            encrypt: Arc::new(sk),
        }
    }
/// Generates a new symmetric key.
Generates a new symmetric key.
Generates a new symmetric key .
pub fn new() -> Self {
        let sk = secretbox::gen_key();
        Self {
            encrypt: Arc::new(sk),
        }
    }
pub fn new ( ) -> Self { let sk = secretbox :: gen_key ( ) ; Self { encrypt : Arc :: new ( sk ) , } }
Generates a new symmetric key.
Generates a new symmetric key .