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

#1548 in Parser implementations

Download history 14/week @ 2024-02-25 8/week @ 2024-03-03 50/week @ 2024-03-10 10/week @ 2024-03-17

82 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