Update: 2026-06-11 18:22:57

This commit is contained in:
Hamza-Ayed
2026-06-11 18:22:59 +03:00
parent c5170a88d2
commit 727068b668
629 changed files with 46050 additions and 46109 deletions

View File

@@ -0,0 +1,12 @@
<?php
// token128.php — توليد توكن آمن 128 حرف (hex)
try {
// 64 bytes -> 128 hex chars
$token = bin2hex(random_bytes(64));
echo "Token (128 chars): " . $token . PHP_EOL;
} catch (Exception $e) {
// random_bytes قد يرمي Exception إذا لم تتوفر مصادر عشوائية كافية
fwrite(STDERR, "Failed to generate token: " . $e->getMessage() . PHP_EOL);
exit(1);
}