6 releases (3 breaking)

0.4.0 Feb 28, 2021
0.3.1 Sep 15, 2018
0.3.0 Jun 28, 2018
0.2.0 Jun 25, 2018
0.1.1 Jun 25, 2018

#1369 in Cryptography


Used in 8 crates (4 directly)

MIT/X11 OR Apache-2.0

13KB
254 lines

🔐 keybob

travis coveralls docs.rs crates.io downloads

A cryptographic key utility crate.

Features

  • Create Aes128 and Aes256 keys from scratch
  • Expand user passphrase via pbkdf2 and Blake2b
  • Custom serde Serialiser/ Deserialiser
  • No heap-allocated structures required (exception: Serialisation currently uses Vec<_>)
extern crate keybob;
use keybob::{Key, KeyType};

/* Let's assume you want to use miscreant */
extern crate miscreant;
use miscreant::aead::{Aes256Siv, Algorithm};

fn main() {
    let key = Key::new(KeyType::Aes256);
    let aes = Aes256Siv::new(key.as_slice());

    /* ... etc ... */
}

Dependencies

~2.2–3MB
~57K SLoC