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

#1262 in Parser implementations

Download history 36/week @ 2024-07-29 13/week @ 2024-08-05 17/week @ 2024-08-12 26/week @ 2024-09-02 90/week @ 2024-09-09 97/week @ 2024-09-16 26/week @ 2024-09-23 51/week @ 2024-09-30 76/week @ 2024-10-07 103/week @ 2024-10-14 21/week @ 2024-10-21 56/week @ 2024-10-28 3/week @ 2024-11-04 42/week @ 2024-11-11

123 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