tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joaquín Sánchez Jiménez <qu...@fi2net.com>
Subject Re: Autentication with digest password(Urgent!)
Date Thu, 07 Mar 2002 10:10:11 GMT
Hi:

Use java.security API.

Supposing "my_password" is a string:

MessageDigest disgest = MessageDigest.getInstance("MD5");
byte[] pwd_digest = digest.digest(my_password.getBytes());

You have "my_password" digested in "pwd_digest".

Bye.

Joaquín.

----- Original Message -----
From: "Galbayar" <galbayar@mobicom.mn>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
Sent: Thursday, March 07, 2002 10:42 AM
Subject: Autentication with digest password(Urgent!)


I setup Tomcat 4.0.3 on Win2000 with JDBCRealm and a mysql-database. Using
plain passwords, everything works fine. But I would like digest my password
in the database. how to make this? can u give me step by step tutorial?

Thank in advance


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message