2 unstable releases

0.2.0 Sep 29, 2024
0.1.0 Sep 23, 2024

#837 in Authentication

Download history 44/week @ 2024-12-01 82/week @ 2024-12-08 19/week @ 2024-12-15 6/week @ 2024-12-22 11/week @ 2024-12-29 18/week @ 2025-01-05 8/week @ 2025-01-12

67 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–17MB
~249K SLoC