Question : generate token in php
Answered by : nitesh-jangid
<?php
//Generate a random string.
$token = openssl_random_pseudo_bytes(16);
//Convert the binary data into hexadecimal representation.
$token = bin2hex($token);
//Print it out for example purposes.
echo $token;
?>
Source : | Last Update : Tue, 26 Jan 21
Question : php token generator
Answered by : captainkungen
$token = bin2hex(random_bytes(16));
Source : https://stackoverflow.com/questions/38546905/php-generating-tokens-for-transactions | Last Update : Fri, 17 Jun 22