MCPcopy
hub / github.com/gotify/server / ComparePassword

Function ComparePassword

auth/password/password.go:15–17  ·  view source on GitHub ↗

ComparePassword compares a hashed password with its possible plaintext equivalent.

(hashedPassword, password []byte)

Source from the content-addressed store, hash-verified

13
14// ComparePassword compares a hashed password with its possible plaintext equivalent.
15func ComparePassword(hashedPassword, password []byte) bool {
16 return bcrypt.CompareHashAndPassword(hashedPassword, password) == nil
17}

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…