Update: 2026-05-03 17:32:57

This commit is contained in:
Hamza-Ayed
2026-05-03 17:32:57 +03:00
parent 6a3e66ad49
commit 4b40b1185f
102 changed files with 525 additions and 11371 deletions

21
app/Core/Security.php Normal file
View File

@@ -0,0 +1,21 @@
<?php
/**
* Simple Security Helpers
*/
declare(strict_types=1);
namespace App\Core;
final class Security
{
public static function sanitize(string $data): string
{
return htmlspecialchars(strip_tags(trim($data)));
}
public static function generateRandomString(int $length = 32): string
{
return bin2hex(random_bytes($length / 2));
}
}