Question : Generating Random String In PHP Using Hashing Functions
Answered by : softhunt
<?php
$str = rand();
$result = hash("sha256", $str);
echo "Hello from Softhunt.net";
echo $result;
?>
Source : https://softhunt.net/how-to-generate-a-random-string-in-php-with-examples/ | Last Update : Sun, 17 Apr 22
Question : Generating Random String In PHP Using Hashing Functions
Answered by : softhunt
<?php
$str=rand();
$result = sha1($str);
echo "Hello from Softhunt.net";
echo $result;
?>
Source : https://softhunt.net/how-to-generate-a-random-string-in-php-with-examples/ | Last Update : Sun, 17 Apr 22
Question : Generating Random String In PHP Using Hashing Functions
Answered by : softhunt
<?php
$str=rand();
$result = md5($str);
echo "Hello from Softhunt.net";
echo $result;
?>
Source : https://softhunt.net/how-to-generate-a-random-string-in-php-with-examples/ | Last Update : Sun, 17 Apr 22