/pseudo-randon-uid

A library to generate pseudo random words from diceware

Primary LanguageGoThe UnlicenseUnlicense

Passphrase generator in Go

Build Status

A simple library to generate passphrases.

tl;dr

# 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

Recommended number of words

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.

Wordlist

This library uses EFF's large wordlist.