Documentation
¶
Index ¶
- func GenerateRandom(randomType Type) (string, error)
- func GenerateRandomLength(length int, randomType Type) (string, error)
- func GetTest2() string
- func HashPass(password, salt []byte, iter, keyLen int) []byte
- func HashPassScrypt(password, salt []byte, workFactor, blockSize, parallelismFactor, keyLen int) (string, error)
- func PSQL() sq.StatementBuilderType
- func PSQL1() sq1.StatementBuilderType
- type Characters
- type Length
- type MyUtils
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRandom ¶
GenerateRandom generates a random string for either password or salt
func HashPassScrypt ¶
func PSQL ¶
func PSQL() sq.StatementBuilderType
func PSQL1 ¶
func PSQL1() sq1.StatementBuilderType
Types ¶
type Characters ¶
type Characters string
const ( UsernameCharacters Characters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" SaltCharacters Characters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789/." PasswordCharacters Characters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@*()&" )
Click to show internal directories.
Click to hide internal directories.