How to use md5 hashing in Jboss 6 for JAAS WebAuthentication?

Md5 hash is now recognized as non-safe. It was broken in many ways.

Md5 hash is now recognized as non-safe. It was broken in many ways. Better use SHA.

– nogamawa Feb 24 at 9:34 @nogamawa - I am not coding on java, so I cannot help you with the code :). But here you can see DigestUtils class definition. You can use sha256, sha384 or sha512 according to your needs.

– artyom. Stv Feb 24 at 9:37.

Take a look at the MessageDigest class: download.oracle.com/javase/1.4.2/docs/ap... Don't use MD5. Use something like SHA-256 instead, and also hash the string iteratively and add salt before the first hash. Hashing functions are not designed for password encryption.

Nogamawa ,purpose of SHA algorithm is similar to MD5, it is one way encryption , ie there is no way to decrypt the message. SHA2 is proven to be much stronger. Java Cryptographic Extentions (JCE) supports both the algo.

--kiran.kumar.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions