转 Encoding is Not Encryption 编码和加密的区别
昨天跟别人聊天的时候,别人把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
翻译一下,编码绝对不是加密。加密是可以算是一种编码的操作。
编码和加密的区别说通俗一点,在于编码是通常希望别人解码的。 而加密是不希望的。
编码更多的是为了转换格式,加密是为了安全。