https://github.com/pnelson/wordlist
Package wordlist implements password and passphrase generators.
https://github.com/pnelson/wordlist
Last synced: 6 months ago
JSON representation
Package wordlist implements password and passphrase generators.
- Host: GitHub
- URL: https://github.com/pnelson/wordlist
- Owner: pnelson
- License: mit
- Created: 2018-08-13T01:40:19.000Z (almost 8 years ago)
- Default Branch: main
- Last Pushed: 2022-07-05T01:48:43.000Z (about 4 years ago)
- Last Synced: 2025-10-13T05:13:03.793Z (9 months ago)
- Language: Go
- Homepage: https://godoc.org/github.com/pnelson/wordlist
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wordlist
Package wordlist implements secure password and passphrase generators.
## Usage
In the most simple use case, generate a password or passphrase with defaults.
```go
password := wordlist.NewPassword()
// 9pbeFr4VamXq
passphrase := wordlist.NewPassphrase()
// starless curse respect shelter murmuring frying
```
You can get creative with this.
Maybe you need a six digit PIN:
```go
pin := wordlist.NewPassword(wordlist.WithLength(6), wordlist.WithCharset("0123456789"))
// 742351
```
Or an unambiguous eight character discount code:
```go
code := wordlist.NewPassword(wordlist.WithLength(8), wordlist.WithCharset("ABCDEFGHKLMNPRSTWXY3456789"))
// E4PRBPPL
```
## Licenses
Package wordlist is licensed under the terms described in
[LICENSE](https://github.com/pnelson/wordlist/blob/master/LICENSE).
Passphrase generation depends on data generated from
[eff_large_wordlist.txt](https://www.eff.org/files/2016/07/18/eff_large_wordlist.txt)
found in the blog post
[Deep Dive: EFF's New Wordlists for Random Passphrases](https://www.eff.org/deeplinks/2016/07/new-wordlists-random-passphrases).