wordlist
Package wordlist implements secure password and passphrase generators.
Usage
In the most simple use case, generate a password or passphrase with defaults.
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:
pin := wordlist.NewPassword(wordlist.WithLength(6), wordlist.WithCharset("0123456789"))
// 742351
Or an unambiguous eight character discount code:
code := wordlist.NewPassword(wordlist.WithLength(8), wordlist.WithCharset("ABCDEFGHKLMNPRSTWXY3456789"))
// E4PRBPPL
Licenses
Package wordlist is licensed under the terms described in LICENSE.
Passphrase generation depends on data generated from eff_large_wordlist.txt found in the blog post Deep Dive: EFF's New Wordlists for Random Passphrases.