generate password for cgi