Reputation: 11
I need to decrypt MD5 hashes in node.js (using crypto bultin module) Didnt tried to do anything beacuse even didnt found anything about decryption MD5, not cipher.
var hash = crypto.createHash("md5").update("example").digest("hex");
//how can i decrypt MD5 hash?
Upvotes: 1
Views: 20839
Reputation: 34123
Simple answer: You can't. Cryptographic hash functions are one-way functions. Some people call them "one-way encryption" but hash functions like MD5 aren't encryption at all. They're cryptographic, but not all cryptography is encryption.
See more here.
Upvotes: 6