Cilian
Cilian

Reputation: 11

node.js MD5 decryption with crypto module

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

Answers (1)

Scott Arciszewski
Scott Arciszewski

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

Related Questions