summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHorus32014-03-12 00:02:34 +0100
committerHorus32014-03-12 00:02:34 +0100
commit0148c370ea13ee0469bd67260cf8c9fe9c97677d (patch)
tree3f9b3c276a82011b88232c1a157ac2e5ceeb7377
parent3bb704a521afdd999a7b48b8cff71adfc05c565d (diff)
downloadfiles.iamfabulous.de-0148c370ea13ee0469bd67260cf8c9fe9c97677d.tar.gz
new password function in php5.5
-rw-r--r--www/password.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/www/password.php b/www/password.php
new file mode 100644
index 0000000..2808fe4
--- /dev/null
+++ b/www/password.php
@@ -0,0 +1,8 @@
+<?
+
+$hash = password_hash($_GET["password"], PASSWORD_DEFAULT);
+if(password_verify($_GET["password"], $hash)){
+ echo $hash;
+} else {
+ echo "Not verified.";
+}