Is it possible to decrypt the below code? below is my method where we are encrypting the String values. If it is decrypt able please guide me how to do that, as per my understanding MD5 algorithm is not decrypt able but for now my job is to find the way to decrypt it. Please provide your valuable opinion to get it done.
public static String encryptPassword(final String password) {
if (MyUtil.isEmpty(password)) {
return null;
}
MessageDigest digest;
try {
digest = MessageDigest.getInstance("MD5");
digest.update(password.getBytes(), 0, password.length());
String secured = new BigInteger(1, digest.digest()).toString(16);
return secured;
} catch (NoSuchAlgorithmException e) {
e.printStackTrace();
}
return null;
}