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)
13KB
254 lines
🔐 keybob
A cryptographic key utility crate.
Features
- Create
Aes128
andAes256
keys from scratch - Expand user passphrase via
pbkdf2
andBlake2b
- 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