Versions in this module Expand all Collapse all v1 v1.0.0 Nov 17, 2023 Changes in this version + func ConvertSliceToUnsignedInteger(slice []byte, bigEndian bool) uint64 + func ConvertUnsignedIntegerToByteSlice(integer uint64, byteLength int, bigEndian bool) []byte + func EncodePassword(hash crypto.Hash, password string, saltLength, iterationCount, keyLength int64, ...) (string, error) + func EncodePasswordPBKDF1(hash crypto.Hash, password string, saltLength, iterationCount, keyLength int64) (string, error) + func EncodePasswordPBKDF2(hash crypto.Hash, password string, saltLength, iterationCount, keyLength int64) (string, error) + func GeneratePasswordString(salt []byte, iterationCount int64, encodedPassword []byte) string + func GenerateRandomByte(min, max byte) (byte, error) + func GenerateRandomInt64(min, max int64) (int64, error) + func GenerateRandomPassword(minLength, maxLength int) (string, error) + func GenerateRandomPasswordFromRunes(minLength, maxLength int, passwordRunes []rune) (string, error) + func GenerateRandomSequence(length int) ([]byte, error) + func GetPasswordParametersFromString(encodedPassword string) ([]byte, int64, []byte, error) + func GetRandomRune(validRunes []rune) (rune, error) + func PBKDF1(hash crypto.Hash, P []byte, S []byte, c int64, dkLen int64) ([]byte, error) + func PBKDF2(hash crypto.Hash, P []byte, S []byte, c int64, dkLen int64) ([]byte, error) + func VerifyPassword(hash crypto.Hash, password, encodedPassword string, kdf PBKDF) (bool, error) + func VerifyPasswordPBKDF1(hash crypto.Hash, password, encodedPassword string) (bool, error) + func VerifyPasswordPBKDF2(hash crypto.Hash, password, encodedPassword string) (bool, error) + type PBKDF func(hash crypto.Hash, P []byte, S []byte, c int64, dkLen int64) ([]byte, error)