entropy

package
v3.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2019 License: MIT, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	START_UPPER string = `^[A-Z][^A-Z]+$`
	END_UPPER   string = `^[^A-Z]+[A-Z]$'`
	ALL_UPPER   string = `^[A-Z]+$`
	NUM_YEARS          = float64(119) // years match against 1900 - 2019
	NUM_MONTHS         = float64(12)
	NUM_DAYS           = float64(31)
)

Variables

View Source
var (
	KEYPAD_STARTING_POSITIONS = len(adjacency.AdjacencyGph["keypad"].Graph)
	KEYPAD_AVG_DEGREE         = adjacency.AdjacencyGph["keypad"].CalculateAvgDegree()
)

Functions

func CalcBruteForceCardinality

func CalcBruteForceCardinality(password string) float64

TODO: Validate against python

func DateEntropy

func DateEntropy(dateMatch match.DateMatch) float64

func DictionaryEntropy

func DictionaryEntropy(match match.Match, rank float64) float64

func ExtraLeetEntropy

func ExtraLeetEntropy(match match.Match, password string) float64

func RepeatEntropy

func RepeatEntropy(match match.Match) float64

func SequenceEntropy

func SequenceEntropy(match match.Match, dictionaryLength int, ascending bool) float64

func SpatialEntropy

func SpatialEntropy(match match.Match, turns int, shiftCount int) float64

func YearEntropy

func YearEntropy(dateMatch match.DateMatch) float64

Types

This section is empty.

Jump to

Keyboard shortcuts

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