Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateSecureSID ¶ added in v1.0.2
GenerateSecureSID returns a session ID in the format: "sid_<64-character-hex-string>" Example: "sid_a1b2c3d4e5f6789012345678901234567890abcdef1234567890abcdef123456"
func HashPassword ¶
HashPassword generates a bcrypt hash of the password with the given cost
func IsValidPassword ¶
IsValidPassword checks if password meets security requirements
func ParseSameSite ¶
ParseSameSite converts string to http.SameSite Used by both JWT middleware and session configuration
func VerifyPassword ¶
VerifyPassword compares a hashed password with a plaintext password
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.