Bindings for Apple's Common Crypto APIs.
toml
[dependencies]
common-crypto = "0.2"
```rust let config = Config::AES256 { mode: Mode::CTR, iv: Some(b"use random iv :)"), key: b"0123456789abcdef0123456789abcdef", };
let encrypted = Cryptor::encrypt(&config, b"Hello").unwrap(); let decrypted = Cryptor::encrypt(&config, encrypted).unwrap(); assert_eq!(decrypted, b"Hello"); ```
Feel free to contribute in any way you like.