creds

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2018 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TotalWeight = 0

	Top500BadPasswords = []string{}

	Steps = []Step{
		Step{
			Name:   "Append Random Top500 Password",
			Weight: 7,
			Func:   appendRandomBadPassword,
		},
		Step{
			Name:   "Append A Year",
			Weight: 5,
			Func:   appendYear,
		},
		Step{
			Name:   "Append a Special Char",
			Weight: 4,
			Func:   appendSpecial,
		},
		Step{
			Name:   "Append a Number",
			Weight: 6,
			Func:   appendNumber,
		},
		Step{
			Name:   "Prepend a Number",
			Weight: 3,
			Func:   prependNumber,
		},
		Step{
			Name:   "Capitalize First Letter",
			Weight: 5,
			Func:   capitalizeFirst,
		},
	}
)

Functions

func RandomPassword

func RandomPassword(stepCount int) string

Types

type Step

type Step struct {
	Name   string
	Weight int
	Func   func(i string) string
}

func RandomWeightedStep

func RandomWeightedStep() Step

Jump to

Keyboard shortcuts

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