mutator

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mutator

type Mutator interface {
	Mutate([]byte, int) [][]byte
}

Mutator interface gives a Mutate() function that takes as input a requested number of mutations, and returns a set of mutated passwords

type RDasMutator

type RDasMutator struct {
	// contains filtered or unexported fields
}

RDasMutator uses the ordered Das et al. mangling rules defined in dasrules.go

func NewRDasMutator

func NewRDasMutator() *RDasMutator

NewRDasMutator returns a new RDasMutator

func (*RDasMutator) Mutate

func (m *RDasMutator) Mutate(password []byte, num int) [][]byte

Mutate generates up to requested number of mutations. Returns a set of unique strings. May return fewer than requested number, caller should check.

type RDasRule

type RDasRule struct {
	RuleType string `json:"ruletype"`
	Position int    `json:"position"`
	String1  string `json:"string1"`
	String2  string `json:"string2"`
}

Jump to

Keyboard shortcuts

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