tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marco Magistrali <magistr...@ariadne.it>
Subject using digest autenticator in tomcat 4
Date Tue, 17 Jul 2001 07:57:34 GMT

hi all,
I want to use the digest autenthicator with tomcat 4 but I can't!!!!

I put in server.xml         digest="MD5"
I put in my web.xml      <auth-method>BASIC</auth-method>

I try to crypt my password with this method:

 public static void main(String args[]) {
            String pippo = "pippo";
            MessageDigest md ;
                    try {

                md = MessageDigest.getInstance("MD5");
                md.reset();
                md.update(pippo.getBytes());
                System.err.println(" dig  "
+(HexUtils.convert(md.digest())));

            } catch (Exception e) {

                System.err.println("credential" + pippo);
            }

    }

and I put the result of system.err in db. It's doesn't work!!!!!!!!!


someone can help me???

tanks!!
Marco


Mime
View raw message