1
0
Fork
You've already forked phraser
0
A self-contained Go-lang command for generating passwords using the [Wordlist corpus](https://www.eff.org/deeplinks/2016/07/new-wordlists-random-passphrases) provided by the [Electronic Frontier Foundation](https://www.eff.org/) for use with their [EFF Dice-Generated Passphrases](https://www.eff.org/dice).
  • Go 100%
2025年03月13日 16:29:49 -04:00
cmd docs(): tweak regarding "special" character 2025年03月13日 16:29:49 -04:00
go.mod Initial commit 2025年03月13日 16:25:24 -04:00
go.sum Initial commit 2025年03月13日 16:25:24 -04:00
LICENSE Initial commit 2025年03月13日 16:25:24 -04:00
main.go Initial commit 2025年03月13日 16:25:24 -04:00
README.org Initial commit 2025年03月13日 16:25:24 -04:00

Phraser Readme

A self-contained Go-lang command for generating passwords using the Wordlist corpus provided by the Electronic Frontier Foundation for use with their EFF Dice-Generated Passphrases.

Building the Command

  • Make sure you have a recent version of Go-lang installed.
  • Clone this repository
  • Run go build -o phraser and then ensure the binary is in your $PATH.

Usage

Generate a list using the Large Wordlist; with 6 words:

 phraser long

Access the inline help via the -h flag.

 phraser -h
Create a pass phrase from the Electronic Frontier Foundation's Word List. The
'phraser' command provides additional options to help you match the criteria of
various password validation strategies.
This command creates a pass phrase of a number segments (-n). The command
generates the passphrase via by evaluating the pattern (-p) for each segment,
then joining (-j) the segments to create a line of text suitable for a
password.
Usage:
 phraser [short medium long] [flags]
Flags:
 -c, --characters string corpus of special characters (default "!@#$%&*")
 -h, --help help for phraser
 -j, --join string join the segments with this text (default " ")
 -n, --numberOfSegments int number of segments in the passphrase (default 6)
 -p, --pattern string pattern for each segment:
 w :: lower case word
 c :: character
 W :: title-case word
 d :: digit
 Example: "wdd" would be a lower-case word
 followed by two random digits. (default "w")

I’ll Do It By Hand

For those that would rather grab a clutch of six-sided dice and roll up a (削除) character (削除ここまで) passphrase, you can use the files provided with this repository:

Long Words
roll 5d6, 6 times (as Gygax proposed in Unearthed Arcana).
Medium Words
roll 4d6, 6 times (no drop lowest like 3rd edition and later). These are perhaps more memorable words.
Short Words
roll 4d6, 6 times (no drop lowest like 3rd edition and later). These are shorter but perhaps less memorable.