security/utils.go
func CheckPassword(password []byte, salt []byte, hpassword []byte) (bool, error) {
	hash, err := HashPassword(password, salt)
	if err != nil {
		return false, err
	}
	return bytes.Equal(hash, hpassword), nil
}
func CheckPassword(password []byte, salt []byte, hpassword []byte) (bool, error) {
	hash, err := HashPassword(password, salt)
	if err != nil {
		return false, err
	}
	return bytes.Equal(hash, hpassword), nil
}
//CheckPassword vérifie si le mot de passe est correct