Moved password encryption algorithm to GlobalFunctions.php to make it useable for...