// CheckPassword returns true if the provided password matches the hash; else false.
CheckPassword returns true if the provided password matches the hash; else false.
// CheckPassword returns true if the provided password matches the hash ; else false .
func CheckPassword(password string, hash []byte) bool {
	comparisonErr := bcrypt.CompareHashAndPassword(hash, []byte(password))
	if comparisonErr == nil {
		return true
	}
	return false
}
func CheckPassword ( password string , hash [ ] byte ) bool { comparisonErr := bcrypt . CompareHashAndPassword ( hash , [ ] byte ( password ) ) if comparisonErr == nil { return true } return false }
CheckPassword returns true if the provided password matches the hash; else false.
CheckPassword returns true if the provided password matches the hash ; else false .