Documentation ¶
Index ¶
- func CheckPasswordHash(password, hash string) bool
- func ContainsInt(intSlice []int, searchInt int) bool
- func GenerateRandomBytes(n int) ([]byte, error)
- func GenerateRandomString(n int) (string, error)
- func GenerateRandomStringURLSafe(n int) (string, error)
- func HashPassword(password string) (string, error)
- func InitializeConfig()
- type EntConfiguration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶
func ContainsInt ¶
Another utility function needed by the application
func GenerateRandomBytes ¶
GenerateRandomBytes returns securely generated random bytes. It will return an error if the system's secure random number generator fails to function correctly, in which case the caller should not continue.
func GenerateRandomString ¶
GenerateRandomString returns a securely generated random string. It will return an error if the system's secure random number generator fails to function correctly, in which case the caller should not continue.
func GenerateRandomStringURLSafe ¶
GenerateRandomStringURLSafe returns a URL-safe, base64 encoded securely generated random string. It will return an error if the system's secure random number generator fails to function correctly, in which case the caller should not continue.
func HashPassword ¶
func InitializeConfig ¶
func InitializeConfig()
Reading properti from ./env.json for externalizing application configuration When error, expecting application to stop (panic)
Types ¶
type EntConfiguration ¶
var Configuration EntConfiguration
For Externalized Configuration