passwordvalidator

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReplaceChars      = `!@$&*`
	SepChars          = `_-., `
	OtherSpecialChars = `"#%'()+/:;<=>?[\]^{|}~`
	LowerChars        = `abcdefghijklmnopqrstuvwxyz`
	UpperChars        = `ABCDEFGHIJKLMNOPQRSTUVWXYZ`
	DigitsChars       = `0123456789`
)
View Source
const (
	SeqNums      = "0123456789"
	SeqKeyboard0 = "qwertyuiop"
	SeqKeyboard1 = "asdfghjkl"
	SeqKeyboard2 = "zxcvbnm"
	SeqAlphabet  = "abcdefghijklmnopqrstuvwxyz"
)

Variables

This section is empty.

Functions

func DeleteRuneAt

func DeleteRuneAt(runes []rune, i int) []rune

func GetBase

func GetBase(password string) int

func GetLength

func GetLength(password string) int

func GetReversedString

func GetReversedString(s string) string

func LogPow

func LogPow(expBase float64, pow int, logBase float64) float64

LogPow calculates log_base(x^y) without leaving logspace for each multiplication step this makes it take less space in memory

func LogX

func LogX(base, n float64) float64

func RemoveMoreThanTwoFromSequence

func RemoveMoreThanTwoFromSequence(s, seq string) string

func RemoveMoreThanTwoRepeatingChars

func RemoveMoreThanTwoRepeatingChars(s string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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