summaryrefslogtreecommitdiff
path: root/www-ssl/inc/crypt.php
diff options
context:
space:
mode:
Diffstat (limited to 'www-ssl/inc/crypt.php')
-rwxr-xr-xwww-ssl/inc/crypt.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/www-ssl/inc/crypt.php b/www-ssl/inc/crypt.php
new file mode 100755
index 00000000..38867064
--- /dev/null
+++ b/www-ssl/inc/crypt.php
@@ -0,0 +1,18 @@
+<?php
+
+
+function PassCrypt($passwort) {
+include "./inc/config.php";
+
+switch ($crypt_system) {
+ case "crypt":
+ return "{crypt}".crypt($passwort, "77");
+ case "md5":
+ return md5($passwort);
+ }
+
+}
+
+
+
+?>