Documentation
¶
Overview ¶
module designed to define a SHA256 hasher that can be used with the Osgood File Server's Authenticators. this will fit the Hasher interface defined in ofsauthenticators/interfaces.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SHA256Hasher ¶
type SHA256Hasher struct{}
func NewSha256Hasher ¶
func NewSha256Hasher() (*SHA256Hasher, error)
func (*SHA256Hasher) ComparePassHash ¶
func (sh *SHA256Hasher) ComparePassHash(password []byte, hash []byte) (err error)
function designed to verify whether the given password is valid by comparing it to a hash.
func (*SHA256Hasher) HashPassword ¶
func (sh *SHA256Hasher) HashPassword(password []byte) (hash []byte, err error)
function designed to hash and return the sha256 sum of a given password.
Click to show internal directories.
Click to hide internal directories.