Documentation ¶
Index ¶
- Constants
- Variables
- func AddSalt(pass string) string
- func BcryptHash(pass string) string
- func CheckError(input string) bool
- func Converter(val string) (int, error)
- func CoverUp(pass string) string
- func GetAPIToken() string
- func GetHundPick(picker string) string
- func GetMul(picker string) string
- func GetPassDiyMessage(val int, command string) string
- func GetPin() string
- func GetPwp() string
- func GetRandomPassword(leng int, pass string) string
- func GetSinglePassword() string
- func GetStrongPassword() string
- func GetTenKPick(picker string) string
- func HashFunc(pass string) string
- func SetAPITokenLength(val string) string
- func SetMulCount(val string) string
- func SetPasswordLength(val string) string
- func SetPinLength(val string) string
- func SetPwpWordCount(val string) string
- func SetSaltLength(val string) string
- func SplitPassword(pass string) []string
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 BcryptHash ¶
func CheckError ¶
func GetAPIToken ¶
func GetAPIToken() string
func GetHundPick ¶
func GetPassDiyMessage ¶ added in v1.1.0
func GetRandomPassword ¶
func GetSinglePassword ¶ added in v1.1.0
func GetSinglePassword() string
func GetStrongPassword ¶
func GetStrongPassword() string
func GetTenKPick ¶
func SetAPITokenLength ¶ added in v1.1.0
func SetMulCount ¶ added in v1.1.0
func SetPasswordLength ¶ added in v1.1.0
func SetPinLength ¶ added in v1.1.0
func SetPwpWordCount ¶ added in v1.1.0
func SetSaltLength ¶ added in v1.1.0
func SplitPassword ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.