How to decrypt md5?

515    Asked by DavidEdmunds in Salesforce , Asked on Apr 28, 2023

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);
Answered by Clare Matthews

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.

Reference Md5 (Message Digest 5) is a cryptographic function that allows you to make a 128-bits (32 characters) "hash" from any string taken as input, no matter the length (up to 2^64 bits). This function is irreversible, you can't obtain the plaintext only from the hash. The only way to decrypt your hash is to compare it with a database using our online decrypter.



Your Answer

Answer (1)

MD5 (Message Digest Algorithm 5) is a widely-used cryptographic hash function that produces a 128-bit hash value. It is commonly used to verify data integrity. drift hunters

4 Months

Interviews

Parent Categories