问题描述
我读了几次MD5不是加密,例如。 on or 。
I've read a couple times that MD5 is not an encryption, e.g. on MD5 ... Encryption? or Command Line Message Digest Utility.
好吧,我得到的是一个哈希/消息摘要,在上面的链接中的解释说明加密必须有一个键,而hash / md是一个加密的散列函数,只产生一个签名。我真的不明白差别。
Well, I get that it's a hash/message digest, and the explanation in the links above says an encryption has to have a key, while hash/md is a cryptographic hash function that produces just a signature. I don't really understand the difference. Couldn't you see the cryptographic hash function / algorithm as a key?
还有,加密的东西和加密的东西有什么区别?
Also, what is the difference between something that's cryptographic and something that's encryption?
推荐答案
您不能解密md5散列函数,并且您选择了一个坏算法,如果要传输信息,阅读它。
You can't "decrypt" a md5 hashed function, and you chose a bad algorithm if you want to transmit information and the receiver can't read it.
所以加密必须是可解密的。 MD5是一个加密散列函数,因为生成一个具有特定给定散列值的信息块非常困难。
所以如果你想签署一个消息,就足以签署哈希。这使用较少的计算能力,并且接收器可以确保原始消息未被改变。
So encryption must be decryptable. MD5 is a "cryptographic" hash function, because it's very difficult to produce a block of information that has a specific given hash value.So if you want to sign a message, it is enough to sign the hash. This uses less computing power and the receiver can regardless be sure that the original message is untouched.
这篇关于MD5或SHA-X散列与加密有何不同?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!