@ 2013-09-06T14:39:13Z <?php
function testCrypt()
{
// Create a random salt
$salt = 'abcdefghij1234567890ab';
//format of Blowfish algorithm is "$2a$" followed by cost, or number of iterations (10) and then followed by random salt string
$salt = "$2a$10$" . $salt;
//this could be moved to index.php pr something like that.
if (version_compare(PHP_VERSION, '5.3.0') < 0)
die('Minimum reqirements for this application are PHP >= 5.3.0 and your version is: ' . phpversion());
//fix issue #22
if (version_compare(PHP_VERSION, '5.3.7') >= 0)
$salt = "$2x$10$" . $salt;
if (version_compare(PHP_VERSION, '5.3.7') < 0)
$salt = "$2a$10$" . $salt;
// Hash the password with the salt
$hash = crypt('ksjdfhs346fsad$%%Aâklsdj9842*&', $salt);
echo $hash;
}
testCrypt();
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 5.6.27 - 5.6.40 , 7.0.12 - 7.0.33 , 7.1.0 - 7.1.33 , 7.2.0 - 7.2.25 , 7.3.0 - 7.3.12 , 7.4.0 *0 Output for 5.3.7 - 5.3.29 , 5.4.0 - 5.4.45 , 5.5.0 - 5.5.38 , 5.6.0 - 5.6.26 , 7.0.0 - 7.0.11 $2x$10$$2a$10$abcdefghij1234uTyb21yqxHHzrdZazW1aWDFxx2EktLl2 Output for 5.3.0 - 5.3.6 $2a$10$$2a$10$abcdefghij1234uTyb21yqxHHzrdZazW1aWDFxx2EktLl2 Output for 5.2.17 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 5.2.17 Output for 5.2.16 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 5.2.16 Output for 5.2.15 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 5.2.15 Output for 5.2.14 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 5.2.14 Output for 5.2.13 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 5.2.13 Output for 5.2.12 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 5.2.12 Output for 5.2.11 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 5.2.11 Output for 5.2.10 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 5.2.10 Output for 5.2.9 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 5.2.9 Output for 5.2.8 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 5.2.8 Output for 5.2.7 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 5.2.7 Output for 5.2.6 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 5.2.6 Output for 5.2.5 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 5.2.5 Output for 5.2.4 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 5.2.4 Output for 5.2.3 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 5.2.3 Output for 5.2.2 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 5.2.2 Output for 5.2.1 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 5.2.1 Output for 5.2.0 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 5.2.0 Output for 5.1.6 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 5.1.6 Output for 5.1.5 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 5.1.5 Output for 5.1.4 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 5.1.4 Output for 5.1.3 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 5.1.3 Output for 5.1.2 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 5.1.2 Output for 5.1.1 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 5.1.1 Output for 5.1.0 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 5.1.0 Output for 5.0.5 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 5.0.5 Output for 5.0.4 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 5.0.4 Output for 5.0.3 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 5.0.3 Output for 5.0.2 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 5.0.2 Output for 5.0.1 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 5.0.1 Output for 5.0.0 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 5.0.0 Output for 4.4.9 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 4.4.9 Output for 4.4.8 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 4.4.8 Output for 4.4.7 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 4.4.7 Output for 4.4.6 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 4.4.6 Output for 4.4.5 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 4.4.5 Output for 4.4.4 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 4.4.4 Output for 4.4.3 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 4.4.3 Output for 4.4.2 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 4.4.2 Output for 4.4.1 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 4.4.1 Output for 4.4.0 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 4.4.0 Output for 4.3.11 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 4.3.11 Output for 4.3.10 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 4.3.10 Output for 4.3.9 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 4.3.9 Output for 4.3.8 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 4.3.8 Output for 4.3.7 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 4.3.7 Output for 4.3.6 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 4.3.6 Output for 4.3.5 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 4.3.5 Output for 4.3.4 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 4.3.4 Output for 4.3.3 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 4.3.3 Output for 4.3.2 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 4.3.2 Output for 4.3.1 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 4.3.1 Output for 4.3.0 Minimum reqirements for this application are PHP >= 5.3.0 and your version is: 4.3.0 preferences:dark mode live preview
192.43 ms | 401 KiB | 322 Q