How decrypt MD5

498    Asked by Ankesh Kumar in Data Science , Asked on Apr 16, 2021

I'm try decrypt one string in format MD5 but I have not been able, this the code:

String e = 'test@testcom'; Blob b = Crypto.generateDigest('MD5', Blob.valueOf(e)); System.debug(EncodingUtil.base64Encode(b)); String result = EncodingUtil.convertToHex(b); System.debug(result); Blob b2 = EncodingUtil.convertFromHex(result); String e2 = EncodingUtil.base64Encode(b2);

How to decrypt MD5?

Answered by Anisha Dalal

By its very nature you cannot decrypt MD5. It's a one-way hash algorithm. There are some sites that claim to decrypt certain phrases but all they do is store known phrases to return them. The MD5 cryptographic algorithm is not reversible i.e. We cannot decrypt a hash value created by the MD5 to get the input back to its original value. So there is no way to decrypt an MD5 password.



Your Answer

Interviews

Parent Categories