📜  加密与解密的区别

📅  最后修改于: 2021-09-27 22:41:25             🧑  作者: Mango

加密是将正常消息(明文)转换为无意义消息(密文)的过程。而解密是将无意义的消息(密文)转换为其原始形式(明文)的过程。

秘密写作与相关秘密写作之间的主要区别在于,秘密写作是将消息转换为不可理解的类型,除非解密,否则无法破译。而密写是从加密信息中恢复第一条消息。

我们来看看加密和解密的区别:

S.NO Encryption Decryption
1. Encryption is the process of converting normal message into meaningless message. While decryption is the process of converting meaningless message into its original form.
2. Encryption is the process which take place at sender’s end. While decryption is the process which take place at receiver’s end.
3. Its major task is to convert the plain text into cipher text. While its main task is to convert the cipher text into plain text.
4. Any message can be encrypted with either secret key or public key. Whereas the encrypted message can be decrypted with either secret key or private key.
5. In encryption process, sender sends the data to receiver after encrypted it. Whereas in decryption process, receiver receives the information(Cipher text) and convert into plain text.