Password admin with velocity

2005-03-18 Thread Doug Carter
Hi all, Has anyone implemented a JDBCRealm and MD5 encrypted passwords with a velocity app? I've got everything working, with one exception. I've got some admin pages that need a way to encrypt clear text passwords from an HTML form before storing them in the database. I've Googled this and

Re: Password admin with velocity

2005-03-18 Thread Barbara Baughman
You can't do this in Velocity. Check out the java.security classes. I'm doing MD4: import gnu.crypto.jce.GnuCrypto; import java.security.MessageDigest; import java.security.Security; public static byte[] encryptMD4(String s) throws Exception { Security.addProvider(new GnuCrypto());