Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultCost = bcrypt.DefaultCost
Variables ¶
Functions ¶
func ConstantTimeCompare ¶
ConstantTimeCompare compares two strings in constant time to prevent timing attacks
func GenerateAPIKey ¶
GenerateAPIKey generates a prefixed API key (e.g., "lgnfy_abc123...")
func GenerateToken ¶
GenerateToken generates a cryptographically secure random token
func HashPassword ¶
HashPassword hashes a password using bcrypt
func VerifyPassword ¶
VerifyPassword compares a password with its hash
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.