Skip to content

A Rust library generating phonetic passwords and pass phrases.

License

Notifications You must be signed in to change notification settings

Hyperchaotic/gpw-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gpw-rs

Synopsis

A Rust library generating phonetic passwords and pass phrases.

Code Example

Generating 10 random passwords

let gp = Gpw::<English>::new();

let pw_length = 10;

for _ in 0..10 {
    let pw = gp.generate_password(pw_length);
    println!("{}", pw);
}

Generating 10 random pass phrases

let gp = Gpw::<English>::new();

let pp_length = 20;

for _ in 0..10 {
    let pw = gp.generate_passphrase(pp_length);
    println!("{}", pw);
}

Tests

cargo test

Or to see passwords generated by tests

cargo test -- --nocapture

Acknowledgements

Thank you to Tom Van Vleck for algorithmns and dictionary data. See more here: http://www.multicians.org/thvv/gpw-js.html

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

About

A Rust library generating phonetic passwords and pass phrases.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages