From 3f2daf1283a6ba885017f68c589237e07bdccd6d Mon Sep 17 00:00:00 2001 From: Ivan Djurdjevac Date: Wed, 11 Oct 2017 09:45:37 +0000 Subject: [PATCH 1/3] Caclulating hash time --- function.php | 9 ++++++++- index.php | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/function.php b/function.php index 94edd7b..abab432 100644 --- a/function.php +++ b/function.php @@ -1,8 +1,15 @@ \ No newline at end of file diff --git a/index.php b/index.php index 7eaa87a..393b0df 100644 --- a/index.php +++ b/index.php @@ -32,6 +32,7 @@

Hash:

+ Execution time: nanoseconds
From 8b19949b8516b858e18605c3ca666b2bc48636e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adnan=20Ki=C4=8Din?= Date: Wed, 11 Oct 2017 11:50:00 +0200 Subject: [PATCH 2/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. From 1b6ff003f32775243bca49e13007de4dc9d009ed Mon Sep 17 00:00:00 2001 From: Nijraj Gelani Date: Wed, 11 Oct 2017 16:22:16 +0000 Subject: [PATCH 3/3] Using jQuery AJAX for form submission Output is now rendered in calculate_hashes.php and then displayed onto the main page through AJAX. --- calculate_hashes.php | 10 ++++++++++ function.php | 4 +--- index.php | 31 ++++++++++++++++--------------- 3 files changed, 27 insertions(+), 18 deletions(-) create mode 100644 calculate_hashes.php 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) { +?> +
+

+

Hash:

+ Execution time: nanoseconds +
+ \ No newline at end of file diff --git a/function.php b/function.php index abab432..5d51f6d 100644 --- a/function.php +++ b/function.php @@ -1,14 +1,12 @@ @@ -17,25 +14,29 @@ grid-auto-columns: minmax(20%, 30%); } + -
+ - +

-
- $algo) { ?> -
-

-

Hash:

- Execution time: nanoseconds -
- +
+