Generating Cryptographically Secure Random Values in PHP


Create secure random numbers or bytes for cryptographic purposes.

Source Code

$bytes = random_bytes(16);
echo bin2hex($bytes);
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments