Update: 2026-06-11 18:22:57
This commit is contained in:
12
walletintaleq.intaleq.xyz/ttt.php
Executable file
12
walletintaleq.intaleq.xyz/ttt.php
Executable 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);
|
||||
}
|
||||
Reference in New Issue
Block a user