diff --git a/README.md b/README.md index cc8c4a2..c60c264 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ # hashr ### _Password hash generator_ -List of all PHP hashing algorithms ([hash_algos() function](http://php.net/manual/en/function.hash-algos.php)) and their result for an input string. +List of all PHP hashing algorithms ([hash_algos() function](http://php.net/manual/en/function.hash-algos.php)) and their result (and hashing time) for an input string. diff --git a/calculate_hashes.php b/calculate_hashes.php new file mode 100644 index 0000000..0c0ba93 --- /dev/null +++ b/calculate_hashes.php @@ -0,0 +1,10 @@ + $algo) { +?> +
= $algo; ?>
+Hash: = $hashes[$i]; ?>
+ Execution time: = number_format($hashTime[$algo] * 1000000000, 0); ?> nanoseconds += $algo; ?>
-Hash: = $hashes[$i]; ?>
-