Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EHashGenPasswordHash = status.Error( codes.Internal, "could not hash the password", )
EHashGenPasswordHash is a GRPC error that is returned when the hash of a password could not be generated.
Functions ¶
Types ¶
type PasswordHashDetails ¶
func GeneratePasswordHash ¶
func GeneratePasswordHash(password string) (PasswordHashDetails, error)
generatePasswordHash hashes the provided password returning the hash generated and the random salt that was used for hashing the password.
Click to show internal directories.
Click to hide internal directories.