package
0.0.0-20230619074042-397de4e67eeb
Repository: https://github.com/saidamir98/udevs_pkg.git
Documentation: pkg.go.dev
# Functions
ComparePassword is used to compare a user-inputted password to a hash to see if the password matches or not.
ExtractClaims extracts claims from given token.
ExtractToken checks and returns token part of input string.
GenerateJWT ...
GenerateRandomBytes returns securely generated random bytes.
GenerateRandomCode returns a securely generated random string that consists of numbers that has length of 2*n.
GenerateRandomString returns a URL-safe, base64 encoded securely generated random string.
GenerateRandomStringByPool returns a securely generated random string based on pool.
HashPassword is used to generate a new password hash for storing and comparing at a later date.
No description provided by the author
# Constants
A2IDkeyLen is the length of the generated key (or password hash) by the algorithm Argon2id.
A2IDmemory is the amount of memory used by the algorithm Argon2id.
A2IDsaltLen is the length of the random salt used by the algorithm Argon2id.
A2IDthreads is the number of threads used by the algorithm Argon2id.
A2IDtime is the number of iterations (or passes) over the memory used by the algorithm Argon2id.