9 lines
152 B
Go
9 lines
152 B
Go
package passwd
|
|
|
|
type Algo string
|
|
|
|
type Hasher interface {
|
|
Hash(plaintext string) (string, error)
|
|
Match(plaintext string, hash string) (bool, error)
|
|
}
|