cmds

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LOTTERY_WHEEL_COUNT  int    = 100 // how many times you want to generate token/password/pins to randomly pick one (pass100, pass10000)
	CONFIG_PASS_DESC     string = "Configure password char length"
	CONFIG_PIN_DESC      string = "Configure pin digit length"
	CONFIG_TOKEN_DESC    string = "Configure token char length"
	CONFIG_PWP_WORD_DESC string = "Configure number of words in passphrase"
	CONFIG_SALT_DESC     string = "Configure number of extra chars to append to password/token"
	CONFIG_MULTI_DESC    string = "Configure number of multiple password/token/pins generated by passdiy"
)

Variables

View Source
var (
	PIN_DIGIT_LENGTH      int = 6  // number of ints in pin digit
	API_TOKEN_CHAR_LENGTH int = 60 // number of chars in a API token
	PASSWORD_CHAR_LENGTH  int = 40 // number of chars in a password
	PASSPHRASE_COUNT_NUM  int = 5  // number of words in passphrase
	MULTIPLE_VALUE_COUNT  int = 5  // how many password/tokens you want to output
	SALT_EXTRA_LENGTH     int = 10 // how many extra chars you want to add to a password/token
)

Functions

func AddSalt

func AddSalt(pass string) string

func BcryptHash

func BcryptHash(pass string) string

func CheckError

func CheckError(input string) bool

func Converter added in v1.1.0

func Converter(val string) (int, error)

func CoverUp

func CoverUp(pass string) string

func GetAPIToken

func GetAPIToken() string

func GetHundPick

func GetHundPick(picker string) string

func GetMul

func GetMul(picker string) string

func GetPassDiyMessage added in v1.1.0

func GetPassDiyMessage(val int, command string) string

func GetPin

func GetPin() string

func GetPwp

func GetPwp() string

func GetRandomPassword

func GetRandomPassword(leng int, pass string) string

func GetSinglePassword added in v1.1.0

func GetSinglePassword() string

func GetStrongPassword

func GetStrongPassword() string

func GetTenKPick

func GetTenKPick(picker string) string

func HashFunc

func HashFunc(pass string) string

func SetAPITokenLength added in v1.1.0

func SetAPITokenLength(val string) string

func SetMulCount added in v1.1.0

func SetMulCount(val string) string

func SetPasswordLength added in v1.1.0

func SetPasswordLength(val string) string

func SetPinLength added in v1.1.0

func SetPinLength(val string) string

func SetPwpWordCount added in v1.1.0

func SetPwpWordCount(val string) string

func SetSaltLength added in v1.1.0

func SetSaltLength(val string) string

func SplitPassword

func SplitPassword(pass 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