edge/pkg/module/auth/http/passwd/hasher.go

9 lines
152 B
Go
Raw Permalink Normal View History

package passwd
type Algo string
type Hasher interface {
Hash(plaintext string) (string, error)
Match(plaintext string, hash string) (bool, error)
}