SHIVAJI(8)
Cryptography is the science and art of designing and using mathematical techniques to secure communication and data in the presence of third parties, protecting it from unauthorized access or manipulation. It uses mathematical algorithms to transform information into a format that is unintelligible to unauthorized individuals.
Cryptography uses various techniques and methods, including encryption, decryption, hash functions, digital signatures and many more.
Encryption is a specific cryptographic technique/algorithm used to convert plaintext (readable data) into ciphertext (unreadable data) through the use of an algorithm and a secret key. The process involves encoding the information in such a way that only authorized parties possessing the correct key can decipher and retrieve the original data.
A given algorithm will always transform the same plaintext into the same ciphertext if the same key is used.
+--------------+ +--------------+
| | | |
| Plain text | | Plain text |
| | | |
+--------------+ +--------------+
| ^
v |
+--------------+ +--------------+
| | | |
| Encryption | -----> Cipher text -----> | Decryption |
| | | |
+--------------+ +--------------+
There are two common types of encryption:
Decryption is the process of converting encrypted or cipher text back into its original and readable form, known as plain text. It requires the use of a specific key or algorithm that is designed to reverse the encryption process. In a cryptographic system, decryption is the counterpart to encryption. While encryption transforms plain text into cipher text, decryption reverses this process, turning cipher text back into plain text.