// Encrypt a password for a .htpasswd file.function enc_pass($pass){ $pass = crypt(trim($pass),base64_encode(CRYPT_STD_DES)); return $pass;}