Package wordlist implements secure password and passphrase generators.
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 fryingYou can get creative with this.
Maybe you need a six digit PIN:
pin := wordlist.NewPassword(wordlist.WithLength(6), wordlist.WithCharset("0123456789"))
// 742351Or an unambiguous eight character discount code:
code := wordlist.NewPassword(wordlist.WithLength(8), wordlist.WithCharset("ABCDEFGHKLMNPRSTWXY3456789"))
// E4PRBPPLPackage 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.