common-crypto

github action crates.io docs.rs

Bindings for Apple's Common Crypto APIs.

Example

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"); ```

What's missing?

Contributing

Feel free to contribute in any way you like.