Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 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.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service holds security related methods.
func (Service) HashMatchesPassword ¶
HashMatchesPassword matches hash with password. Returns true if hash and password match.
Click to show internal directories.
Click to hide internal directories.