package
0.0.0-20250106045613-9a8ef326fabb
Repository: https://github.com/mohamedhabas11/golang-api.git
Documentation: pkg.go.dev

# Functions

ComparePassword compares a hashed password with the plaintext password.
HashPassword hashes a plaintext password using bcrypt.
NewPasswordValidationConfig creates a new PasswordValidationConfig with default values.
ValidateEmail checks if the email format is valid.
ValidatePassword checks if the password meets the minimum length and passes additional validations.

# Structs

AddPasswordSpecialCharValidator checks if the password contains at least one special character.
AddPasswordStrengthValidator checks if the password contains at least one uppercase letter and one number.
PasswordValidationConfig holds the configuration for validating passwords.

# Interfaces

PasswordValidator is an interface for custom password validation strategies.