ncryptf-rs 0.5.7

Secure API authentication and end to end encryption.
Documentation
1
2
3
4
5
6
/// Returns len random bytes a Vec<u8> using dryoc
pub fn randombytes_buf(len: usize) -> Vec<u8> {
    let mut bytes = vec![0u8; len];
    dryoc::rng::copy_randombytes(&mut bytes);
    bytes
}