简体   繁体   English

node.js MD5 解密与加密模块

[英]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.我需要在 node.js 中解密 MD5 哈希(使用加密 bultin 模块)没有尝试做任何事情,因为甚至没有发现任何关于解密 MD5 的信息,而不是密码。

var hash = crypto.createHash("md5").update("example").digest("hex");
//how can i decrypt MD5 hash?

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.有些人称它们为“单向加密”,但像 MD5 这样的哈希函数根本不是加密。 They're cryptographic, but not all cryptography is encryption .它们是密码学,但并非所有密码学都是加密

See more here .在此处查看更多信息

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM