- password_hash: documentation ( source)
- crypt: documentation ( source)
<?php
$options = array(
//DO NOT ADD A CUSTOM SALT! I WILL SLAP YOU CRAZY!
'cost' => 11
);
echo password_hash("welkom02", PASSWORD_DEFAULT, $options);
if (CRYPT_SHA256 == 1) {
echo 'SHA-256: ' . crypt('welkom02', '$5$rounds=5000$usesomesillystringforsalt$') . "\n";
}