2 unstable releases

0.2.0 Sep 29, 2024
0.1.0 Sep 23, 2024

#466 in Authentication

Download history 313/week @ 2024-09-23 88/week @ 2024-09-30 9/week @ 2024-10-07 4/week @ 2024-10-14 55/week @ 2024-12-02 76/week @ 2024-12-09 16/week @ 2024-12-16

147 downloads per month
Used in passgen-cli

MIT license

3.5MB
1.5K SLoC

Passgen Rust

Rust implementation of Passgen, a passphrase generator with a regular-expression-like syntax. It has some features that make it interesting:

  • Generate arbitrary randomized passphrases from a format string
  • Choose random words from a wordlist for XKCD-style passphrases
  • Use a markov-chain to generate high-entropy pronounceable words
  • Calculates the entropy for every generated passphrase
  • Can define presets for commonly used passphrase patterns
  • Can use it in master-passphrase mode, where it will generate deterministic passphrases for different domain-account pairs.

Installation

If you have a Rust installation, you can use Cargo to install it for your user account:

cargo install passgen-rs

Usage

Todo.

License

MIT.


lib.rs:

Passphrase generator with a regular-expression-like syntax

This crate is an implementation of Passgen, which can generate secure, random passphrases from a pattern string that has a syntax similar to regular expressions.

Syntax

Examples

Dependencies

~7–16MB
~226K SLoC