parser

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BaseStructureCreation

func BaseStructureCreation(sectionList []Section) (bool, string)

func CheckValid

func CheckValid(password string) bool

func IsControlChar

func IsControlChar(r rune) bool

Types

type MultiWordDetector

type MultiWordDetector struct {
	Threshold   int
	MinLen      int
	MaxLen      int
	MinCheckLen int
	Lookup      map[rune]interface{}
}

func NewMultiWordDetector

func NewMultiWordDetector(threshold, minLen, maxLen int) *MultiWordDetector

type Section

type Section struct {
	Value string
	Type  string
}

func AlphaDetection

func AlphaDetection(sectionList []Section, mwd *TrieMultiWordDetector) ([]Section, []string, []string)

func ContextSensitiveDetection

func ContextSensitiveDetection(sectionList []Section) ([]Section, []string)

func DetectKeyboardWalk

func DetectKeyboardWalk(password string) ([]Section, []string, []string)

func DigitDetection

func DigitDetection(sectionList []Section) ([]Section, []string)

func EmailDetection

func EmailDetection(sectionList []Section) ([]Section, []string, []string)

func OtherDetection

func OtherDetection(sectionList []Section) ([]Section, []string)

func WebsiteDetection

func WebsiteDetection(sectionList []Section) ([]Section, []string, []string, []string)

func YearDetection

func YearDetection(sectionList []Section) ([]Section, []string)

type TrieMultiWordDetector

type TrieMultiWordDetector struct {
	Threshold   int
	MinLen      int
	MaxLen      int
	MinCheckLen int
	Root        *trieNode
}

func NewTrieMultiWordDetector

func NewTrieMultiWordDetector(threshold, minLen, maxLen int) *TrieMultiWordDetector

func (*TrieMultiWordDetector) Parse

func (d *TrieMultiWordDetector) Parse(alphaString string) (bool, []string)

func (*TrieMultiWordDetector) Train

func (d *TrieMultiWordDetector) Train(password string, setThreshold bool)

Jump to

Keyboard shortcuts

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