password « MySQL « JPA Q&A





1. Hibernate & mysql md5 password    forum.hibernate.org

Hi Earlier we have put passwords to mysql table with PHP and following sql script: insert into table set password = md5('secred') and now old software will be replaced with new java version, where i have used hibernate. Does hibernate support same kind functionality, or how to solve problem? I have tried to create same md5 checksum with java, but it ...

2. How to save user password with MD5 to MySQL 4?    forum.hibernate.org

Mapping documents: Code: package blah; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Types; import net.sf.hibernate.HibernateException; import net.sf.hibernate.UserType; public class MD5sumType implements UserType { public int[] sqlTypes() { return new int[] { Types.VARCHAR }; ...