github.com/goravel/framework@v1.13.9/contracts/hash/hash.go (about) 1 package hash 2 3 //go:generate mockery --name=Hash 4 type Hash interface { 5 // Make returns the hashed value of the given string. 6 Make(value string) (string, error) 7 // Check checks if the given string matches the given hash. 8 Check(value string, hashedValue string) bool 9 // NeedsRehash checks if the given hash needs to be rehashed. 10 NeedsRehash(hashedValue string) bool 11 }