Documentation
¶
Index ¶
- func BaseStructureCreation(sectionList []Section) (bool, string)
- func CheckValid(password string) bool
- func IsControlChar(r rune) bool
- type MultiWordDetector
- type Section
- func AlphaDetection(sectionList []Section, mwd *TrieMultiWordDetector) ([]Section, []string, []string)
- func ContextSensitiveDetection(sectionList []Section) ([]Section, []string)
- func DetectKeyboardWalk(password string) ([]Section, []string, []string)
- func DigitDetection(sectionList []Section) ([]Section, []string)
- func EmailDetection(sectionList []Section) ([]Section, []string, []string)
- func OtherDetection(sectionList []Section) ([]Section, []string)
- func WebsiteDetection(sectionList []Section) ([]Section, []string, []string, []string)
- func YearDetection(sectionList []Section) ([]Section, []string)
- type TrieMultiWordDetector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BaseStructureCreation ¶
func CheckValid ¶
func IsControlChar ¶
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 ¶
func AlphaDetection ¶
func AlphaDetection(sectionList []Section, mwd *TrieMultiWordDetector) ([]Section, []string, []string)
func DigitDetection ¶
func OtherDetection ¶
func WebsiteDetection ¶
func YearDetection ¶
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)
Click to show internal directories.
Click to hide internal directories.