tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jon Yeargers <>
Subject SHA encrypting passwords for realm
Date Fri, 08 Sep 2006 17:59:32 GMT
Im running my app using a 'DataSourceRealm' (MySQL) wherein I have 
encrypted the stored passwords using SHA. I added the 'digest="SHA"' to 
the realm definition.

The logins were working when I didn't encrypt the passwords. Now that 
they are encrypted I can't login anymore.

Does the MySQL 'SHA(pw)' command create passwords that are usable by 
Tomcat ?

I have them stored in a 'blob' column. They were created as follows:

update users set user_pass=SHA("pw") where user_name='test0';

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message