A Rust implementation of the Spectre / Master Password algorithm https://crates.io/crates/rusterpassword
  • Rust 86.8%
  • Python 8%
  • C 5.2%
Find a file
2022-12-27 04:20:34 -03:00
capi Fixup/update capi 2022-12-27 04:20:15 -03:00
src Switch from libsodium to RustCrypto crates 2022-12-27 04:20:34 -03:00
.gitignore add capi 2015-10-31 19:01:12 +03:00
.rustfmt.toml Update more metadata, migrate to Rust 2018, rustfmt 2022-12-27 04:10:59 -03:00
Cargo.toml Switch from libsodium to RustCrypto crates 2022-12-27 04:20:34 -03:00
CODE_OF_CONDUCT.md readme stuff 2016-04-16 14:20:20 +03:00
README.md Switch from libsodium to RustCrypto crates 2022-12-27 04:20:34 -03:00
UNLICENSE initial commit 2015-10-29 22:21:24 +03:00

crates.io API Docs unlicense

rusterpassword

A Rust implementation of the Spectre / Master Password algorithm.

Uses secstr secure strings and the RustCrypto ecosystem crates.

Also includes a C API for calling from other languages.

Usage

use secstr::*;
use rusterpassword::*;

fn main() {
    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);
}

License

This is free and unencumbered software released into the public domain.
For more information, please refer to the UNLICENSE file or unlicense.org.