Module utils

Module utils 

Source
Expand description

Security utilities

Functionsยง

constant_time_compare
Constant-time string comparison to prevent timing attacks
generate_secure_id
Generate secure random ID
hash_for_logging
Hash sensitive data for logging (truncated SHA-256)
sanitize_filename
Sanitize filename for safe storage