MD5 algorithm Decryption in java -


this question has answer here:

is possible decrypt below code? below method encrypting string values. if decrypt able please guide me how that, per understanding md5 algorithm not decrypt able job find way decrypt it. please provide valuable opinion 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;     } 

but job find way decrypt it

good luck. md5 hash, means one-way, not bijective transformation, input output. md5 known weak general collisions, , not chosen-hash attack. can try every single possible input until right hash(or collision) computationally expensive, , not idea. in addition, time-memory tradeoff, pre-generated rainbow tables may used. take long generate, have fast lookups. not provide link them due controversy of using them, may obtain , acquire 1 freely, long within applicable laws in jurisdiction. process still not routine one, , isn't best idea webapp or general application.

have looked aes instead, has key, , encrypts, allowing decryption key?


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -