# Functions
ComparePassword compares a given hash, salt, and password.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
HashPassword generates a hash of the given password using the Argon2id algorithm.
LoadConfig loads the configuration from the environment variables using viper package.
RandomCountryCode generates a random country code If an optional *rand.Rand instance is provided, it is used to generate the random country code.
RandomDate generates a random date within the last 100 years with time part set to 00:00:00 UTC If an optional *rand.Rand instance is provided, it is used to generate the random date.
RandomEmail generates a random email If an optional *rand.Rand instance is provided, it is used to generate the random email.
RandomInt generates a random int64 between min and max If an optional *rand.Rand instance is provided, it is used to generate the random integer.
RandomPasswordHash generates a random password hash If an optional *rand.Rand instance is provided, it is used to generate the random password hash.
RandomString generates a random string of length n If an optional *rand.Rand instance is provided, it is used to generate the random string.
RandomTwoOrThreeDigitInt generates a random uint8 between 10 and 999 If an optional *rand.Rand instance is provided, it is used to generate the random integer.
RandomUsername generates a random username If an optional *rand.Rand instance is provided, it is used to generate the random username.
# Structs
No description provided by the author
No description provided by the author
Config is a struct that holds all configurations for the application.
GenerateHash using the password and provided salt.