Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

generating-random-token-php

<?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;
?>
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
5+2 =