Basic password hash function with password_hash()

Run Settings
LanguagePHP
Language Version
Run Command
<?php $pass = '12345'; // your password $salt = 'f992d3215d1db9948b68028c7dfce284'; // min 22 char /* function */ function passHash($pass,$salt = 'default',$cost = 12) { if ($salt == 'default') { global $salt; } $options = [ 'cost' => $cost, 'salt' => $salt // min 22 char ]; $hash = password_hash($pass, PASSWORD_DEFAULT, $options); return $hash; } /* using */ echo passHash($pass). "\n"; // or echo passHash($pass,'5f17092cfb6148c878b69ef0ebff9d4d',15);
Editor Settings
Theme
Key bindings
Full width
Lines