apple-security-framework 2.9.2

Apple `Security.framework` bindings for macOS and iOS
Documentation
1
2
3
4
5
6
7
8
9
10
use apple_security_framework::random::SecRandom;

fn main() {
    let mut buf = [0; 32];

    let rng = SecRandom::default();
    rng.copy_bytes(&mut buf).unwrap();

    println!("{}", hex::encode(buf));
}