9 releases (5 stable)

2.1.0 Jun 6, 2022
2.0.2 Jun 6, 2022
1.0.0 Jun 3, 2022
0.1.3 Jun 1, 2022
0.1.0 May 31, 2022

#1494 in Parser implementations

Download history 62/week @ 2024-11-16 6/week @ 2024-11-23 67/week @ 2024-11-30 231/week @ 2024-12-07 113/week @ 2024-12-14 7/week @ 2024-12-21 44/week @ 2024-12-28 208/week @ 2025-01-04 104/week @ 2025-01-11 23/week @ 2025-01-18 6/week @ 2025-01-25 22/week @ 2025-02-01 5/week @ 2025-02-08 46/week @ 2025-02-15 18/week @ 2025-02-22 30/week @ 2025-03-01

100 downloads per month
Used in pwgn

MIT/Apache

11MB
370K SLoC

password-gen

A rust library for generating passwords.

Features

  • Random Xkcd-esque passwords. Uses this wordlist.
  • Random ASCII (extended) passwords.
  • Random PIN numbers.
  • Random Alphanumeric passwords.

Usage

Add this to your Cargo.toml

[dependencies]
password-gen = "<latest-version>

To get started, see the api documentation

Character Set

Supports different character sets each useful in their own right.

CharSet Example
Xkcd underrogue/orchesography/ARAMITESS
Ascii yB"hF<%\H
AsciiExtended ÝýIêø¹Ü¹fBDI2î1Ù
Alphanumeric bpM2vqmGRfzaSmm5
Numbers 9837

Feature Flags

  • cereal - Enable serde Serialization and Deserialization support on PasswordOptions

Dependencies