title: Encryption of Password in Java or MySQL?
body: <p>I am trying to encrypt the password using MD5 in user registration and matching the same during logging in.. I am using Mysql as my database.. Mysql too offers an option to convert password into MD5(ie MD5(password)).. I want to know which is the better way to encrypt it.. is it using java code or mysql query..</p>
  
  <p>Thanks in advance.</p>