编码和加密

昨天跟别人聊天的时候,别人把base64说成了加密。 我并不是扣字眼,但是做为一个IT技术人员我认为分辨加密和编码的区别算是一个常识。

 

 

It's unfortunate that the words encryption and encoding tend to get used as synonyms. In cryptography they mean two different things.

In short:

  • Encryption = encipherment = make secret
  • Encoding = to convert format, not necessarily securely

Encoding is not encryption. Repeat, encoding is not encryption. Strictly speaking, encryption is an encoding operation, but the term encoding is generally used in cryptography to mean that secrecy is not involved.

 

翻译一下,编码绝对不是加密。加密是可以算是一种编码的操作。

编码和加密的区别说通俗一点,在于编码是通常希望别人解码的。 而加密是不希望的。

编码更多的是为了转换格式,加密是为了安全。

猜你喜欢

转载自cainiao1923.iteye.com/blog/2289456
今日推荐