Expand description
Validation Utilities
This module provides utility functions for data validation, such as checking for valid usernames, passwords, and file paths. These functions help ensure data integrity and security.
Functionsยง
- is_
safe_ path - Checks if a file path is safe from directory traversal attacks.
- is_
valid_ email - Validates an email address format using a regular expression.
- is_
valid_ file_ size - Validates that a file size is within acceptable limits.
- is_
valid_ filename - Validates a filename to ensure it contains only safe characters.
- sanitize_
input - Sanitizes an input string by removing potentially dangerous characters.
- sanitize_
path - Sanitizes a file path to prevent directory traversal attacks.
- validate_
password - Validates a password.
- validate_
username - Validates a username.