| Crates.io | rusterpassword |
| lib.rs | rusterpassword |
| version | 0.2.3 |
| created_at | 2015-10-31 16:05:13.49588+00 |
| updated_at | 2022-10-02 00:43:49.988274+00 |
| description | An implementation of the Master Password algorithm. |
| homepage | https://codeberg.org/valpackett/rusterpassword |
| repository | https://codeberg.org/valpackett/rusterpassword |
| max_upload_size | |
| id | 3345 |
| size | 15,327 |
A Rust implementation of the Spectre / Master Password algorithm.
Uses secstr secure strings and libsodium through sodiumoxide's underlying libsodium-sys.
Also includes a C API for calling from other languages.
use sodiumoxide;
use secstr::*;
use rusterpassword::*;
fn main() {
sodiumoxide::init();
let master_key = gen_master_key(SecStr::from("Correct Horse Battery Staple"), "Cosima Niehaus").unwrap();
let site_seed = gen_site_seed(&master_key, "twitter.com", 5).unwrap();
let password = gen_site_password(site_seed, TEMPLATES_MAXIMUM);
}
This is free and unencumbered software released into the public domain.
For more information, please refer to the UNLICENSE file or unlicense.org.