mrcrypt

package
v0.20.2 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenDigitCode

func GenDigitCode(length int) string

GenDigitCode - comment func.

func GenPassword

func GenPassword(length int, charsKinds PassCharsKinds) string

GenPassword - comment func.

func GenTokenBase64

func GenTokenBase64(length int) string

GenTokenBase64 - comment func.

func GenTokenHex

func GenTokenHex(length int) string

GenTokenHex - comment func.

func GenTokenHexWithDelimiter

func GenTokenHexWithDelimiter(length, repeat int) string

GenTokenHexWithDelimiter - comment func.

Types

type PassCharsKinds

type PassCharsKinds uint8

PassCharsKinds - вид символов используемых в пароле.

const (
	PassVowels      PassCharsKinds = 1  // PassVowels - гласные буквы
	PassConsonants  PassCharsKinds = 2  // PassConsonants - согласные буквы
	PassNumerals    PassCharsKinds = 4  // PassNumerals - цифры
	PassSigns       PassCharsKinds = 8  // PassSigns - знаки
	PassAbc         PassCharsKinds = 3  // PassAbc = PassVowels + PassConsonants
	PassAbcNumerals PassCharsKinds = 7  // PassAbcNumerals = PassVowels + PassConsonants + PassNumerals
	PassAll         PassCharsKinds = 15 // PassAll = PassVowels + PassConsonants + PassNumerals + PassSigns

)

type PassStrength

type PassStrength uint8

PassStrength - надёжность пароля.

const (
	PassStrengthNotRated PassStrength = iota // PassStrengthNotRated - пароль без оценки
	PassStrengthWeak                         // PassStrengthWeak - слабый пароль
	PassStrengthMedium                       // PassStrengthMedium - средний пароль
	PassStrengthStrong                       // PassStrengthStrong - надёжный пароль
	PassStrengthBest                         // PassStrengthBest - самый надёжный пароль

)

func PasswordStrength

func PasswordStrength(value string) PassStrength

PasswordStrength - comment func.

func (PassStrength) String

func (e PassStrength) String() string

String - comment method.

Jump to

Keyboard shortcuts

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