A simple library to generate passphrases.
# Install library
go get -u github.com/leonklingele/passphrase
// .. and use it. Generate a 7-word long passphrase
s, err := passphrase.Generate(7)
// Example output: discover thinner scared escalate security glitch getting
// You can even specify your own word-separator
passphrase.Separator = "-"
s, err := passphrase.Generate(7)
// Example output (notice the dash!): discover-thinner-scared-escalate-security-glitch-getting
Make sure to generate passphrases with at least 7 words. This yields around 90 bits of entropy (ld(7776^7)) which is more than enough.
This library uses EFF's large wordlist.