abracadabra

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Charset = Upper + Lower + Symbols + Digits

Charset for password

View Source
const ConsonantsLower = "bcdfghjklmnpqrstvwxz"

ConsonantsLower - lower consonants in language

View Source
const ConsonantsUpper = "BCDFGHJKLMNPQRSTVWXZ"

ConsonantsUpper - upper consonants in language

View Source
const Digits = "1234567890"

Digits - all digits in our Charset

View Source
const Lower = "aeiouybcdfghjklmnpqrstvwxz"

Lower - lower letters in language

View Source
const Symbols = "~!@#$%^&*()_{}<>"

Symbols - different symbols in our Charset. Contains most frequent symbols.

View Source
const Upper = "AEIOUYBCDFGHJKLMNPQRSTVWXZ"

Upper - upper letters in language

View Source
const VowelsLower = "aeiouy"

VowelsLower - lower vowels in language

View Source
const VowelsUpper = "AEIOUY"

VowelsUpper - upper vowels in language

Variables

View Source
var SeededRand *rand.Rand = rand.New(
	rand.NewSource(time.Now().UnixNano()))

SeededRand - init seed from time

Functions

func CheckStrength

func CheckStrength(pass string) bool

CheckStrength - test our password complexity. TRUE if contains UPPERCASE & lowercase & special symbols. Else => FALSE

func String

func String(length int) string

String - wrapper for StringWithCharset. Get length(int) => return StringWithCharset

func StringWithCharset

func StringWithCharset(length int, Charset string) string

StringWithCharset - get length(int) & charset(str) => return generated random password string

Types

This section is empty.

Jump to

Keyboard shortcuts

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