Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordsMatch ¶
Check if two passwords match
func GenerateRandomSalt ¶
func GenerateRandomSalt() []byte
Generate 16 bytes randomly and securely using the Cryptographically secure pseudorandom number generator (CSPRNG) in the crypto.rand package
func HashPassword ¶
Combine password and salt then hash them using the SHA-512 hashing algorithm and then return the hashed password as a base64 encoded string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.