Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrUnknownName = errors.New("unknown wordlist name")
Functions ¶
func MetaStrings ¶
func MetaStrings() []string
MetaStrings returns a slice of all String values of the enum
Types ¶
type Meta ¶
type Meta uint8
func MetaString ¶
MetaString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func (Meta) Description ¶
func (Meta) IsAMeta ¶
IsAMeta returns "true" if the value is listed in the enum definition. "false" otherwise
func (Meta) MarshalText ¶
MarshalText implements the encoding.TextMarshaler interface for Meta
func (*Meta) UnmarshalText ¶
UnmarshalText implements the encoding.TextUnmarshaler interface for Meta
type Wordlist ¶
type Wordlist []string
func EFF_Long ¶
func EFF_Long() Wordlist
EFF_Long is the default wordlist used for passphrases. It contains 7776 words and is designed for memorability and password strength.
Source: https://www.eff.org/dice
func EFF_Short1 ¶
func EFF_Short1() Wordlist
EFF_Short1 features only short words. It contains 1296 words and may be more efficient to type, but suggests using more words to maintain security.
Source: https://www.eff.org/dice
func EFF_Short2 ¶
func EFF_Short2() Wordlist
EFF_Short2 features longer words and may be more memorable. It contains 1296 words and may be more efficient to type, but suggests using more words to maintain security.
Source: https://www.eff.org/dice