diceware

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MinWordCount defines the lowest bound for allowed word count.
	MinWordCount = 4
	// MaxWordCount defines the highest bound for allowed word count.
	MaxWordCount = 24
	// BasicWordCount defines basic passphrase word count (4 words).
	BasicWordCount = 4
	// StrongWordCount defines strong passphrase word count (8 words).
	StrongWordCount = 8
	// ParanoidWordCount defines paranoid passphrase word count (12 words).
	ParanoidWordCount = 12
	// MasterWordCount defines master passphrase word count (24 words).
	MasterWordCount = 24
)

Variables

This section is empty.

Functions

func Basic

func Basic() (string, error)

Basic generates 4 words diceware passphrase.

func Diceware

func Diceware(count int) (string, error)

Diceware generates a passphrase using english words.

func Master

func Master() (string, error)

Master generates 24 words diceware passphrase.

func Paranoid

func Paranoid() (string, error)

Paranoid generates 12 words diceware passphrase.

func Strong

func Strong() (string, error)

Strong generates 8 words diceware passphrase.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL