diff options
Diffstat (limited to 'includes/crypt.php')
-rwxr-xr-x | includes/crypt.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/includes/crypt.php b/includes/crypt.php new file mode 100755 index 00000000..38867064 --- /dev/null +++ b/includes/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); + } + +} + + + +?> |