You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
k3s/pkg/authenticator/hash/hash.go

10 lines
339 B

package hash
// Hasher is a generic interface for hashing algorithms
type Hasher interface {
// CreateHash will return a hashed version of the secretKey, or an error
CreateHash(secretKey string) (string, error)
// VerifyHash will compare a secretKey and a hash, and return nil if they match
VerifyHash(hash, secretKey string) error
}