Skip to content

Instantly share code, notes, and snippets.

@egoing
Created January 20, 2021 12:33
Show Gist options
  • Save egoing/06da128520b75537c465dafd3bbdd089 to your computer and use it in GitHub Desktop.
Save egoing/06da128520b75537c465dafd3bbdd089 to your computer and use it in GitHub Desktop.
<?php
$start = microtime(true);
$options = [ 'cost' => $_GET['cost'] ];
$hash = password_hash('hi', PASSWORD_DEFAULT, $options);
$ip = $_SERVER['REMOTE_ADDR'];
echo $ip.' => '.$hash.' : '.(microtime(true)-$start);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment