dicewords

package module
Version: v0.0.0-...-64dafc6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

README

Dicewords

Dicewords is a command line utility that generates a secure passphrase from EFF's dice word list.

Features

Can choose from 3 available word lists:
  • normal list - the default
  • short words - has shorter words that are easier to type
  • unique short words - has shorter words that have unique 3 letter prefix. Makes it easier for predictive entry on phones
Shows passphrase strength (-v flag)
Can specify the number of words to generate
Can specify the number of bits to generates
Now works on Windows! (removed dependency on make)

To install

Run go run make.go from the directory

Usage help

Type dicewords -h for help text

Documentation

Overview

Copyright 2018 Timothy Ham

Copyright 2018 Timothy Ham

Index

Constants

This section is empty.

Variables

View Source
var Debug bool
View Source
var EFFLargeWordList []string
View Source
var EFFLargeWordListRaw = `` /* 108801-byte string literal not displayed */

Words retrieved from https://www.eff.org/deeplinks/2016/07/new-wordlists-random-passphrases on 2018-08-10

View Source
var EFFShortWordList []string
View Source
var EFFShortWordListRaw = `` /* 13661-byte string literal not displayed */
View Source
var EFFShortWordUniqPrefix []string
View Source
var EFFShortWordUniqPrefixRaw = `` /* 17259-byte string literal not displayed */
View Source
var NumWords int
View Source
var VersionString string

Functions

func EstimateBits

func EstimateBits(numWords int, dict Dictionary) float64

func GetLargeWord

func GetLargeWord(rolls int) (string, error)

GetLargeWord needs 5 digit rolls

func GetShortUniqueWord

func GetShortUniqueWord(rolls int) (string, error)

func GetShortWord

func GetShortWord(rolls int) (string, error)

func PrintStats

func PrintStats(stats Stats) string

Types

type Dictionary

type Dictionary int
const (
	Large Dictionary = iota
	Short
	Short2
)

type Stats

type Stats struct {
	NumBits  float64
	Length   int
	NumChars int
}

func GetPhrase

func GetPhrase(numWords int, dict Dictionary) (string, Stats)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL