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
Download history 39/week @ 2021-02-23 21/week @ 2021-03-02 6/week @ 2021-03-09 11/week @ 2021-03-16 25/week @ 2021-03-23 25/week @ 2021-03-30 28/week @ 2021-04-06 23/week @ 2021-04-13 17/week @ 2021-04-20 7/week @ 2021-04-27 10/week @ 2021-05-04 6/week @ 2021-05-11 16/week @ 2021-05-18 8/week @ 2021-05-25 7/week @ 2021-06-01 15/week @ 2021-06-08

80 downloads per month
Used in 8 crates (4 directly)

MIT/X11 OR Apache-2.0

12KB
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

~1.4–2.1MB
~48K SLoC