summaryrefslogtreecommitdiff
path: root/vendor/ircmaxell/password-compat/version-test.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/ircmaxell/password-compat/version-test.php')
-rw-r--r--vendor/ircmaxell/password-compat/version-test.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/vendor/ircmaxell/password-compat/version-test.php b/vendor/ircmaxell/password-compat/version-test.php
new file mode 100644
index 00000000..f527e30f
--- /dev/null
+++ b/vendor/ircmaxell/password-compat/version-test.php
@@ -0,0 +1,8 @@
+<?php
+
+$hash = '$2y$04$usesomesillystringfore7hnbRJHxXVLeakoG8K30oukPsA.ztMG';
+$test = crypt("password", $hash);
+$pass = $test == $hash;
+
+echo "Test for functionality of compat library: " . ($pass ? "Pass" : "Fail");
+echo "\n"; \ No newline at end of file