EZ

Eduzan

Learning Hub

Eduzan
Eduzan / Cyber Security

Classical Encryption Techniques

Symmetric Encryption is one of the oldest and simplest forms of encryption. It operates using a single key for both encrypting and decrypting data, which is why it is also called Single-Key Encryption.

Basic Terminology in Cryptography

  • Plain Text: The original message that needs to be exchanged between a sender and a receiver.
    Example: A message like “Meet at 5 PM” before encryption.
  • Cipher Text: The encoded version of the plain text, which cannot be easily interpreted by humans.
    Example: The plain text “Meet at 5 PM” might appear as “12A45BXY7” after encryption.
  • Encryption (Enciphering): The process of converting plain text into cipher text.
    Output: Converts “Meet at 5 PM” into “12A45BXY7”.
  • Decryption (Deciphering): The reverse of encryption, converting cipher text back to plain text.
    Output: Converts “12A45BXY7” back into “Meet at 5 PM”.

symmetric cipher model consists of five key components:

  1. Plain Text (x): This is the original information or message to be sent to the receiver. It serves as one of the inputs for the encryption algorithm.
    Example: “The account number is 12345.”
  2. Secret Key (k): A unique string or value used to encrypt and decrypt the data. This key is independent of the encryption algorithm but determines the transformations and substitutions performed on the plain text.
    Example: A password like “Key2024!”.
  3. Encryption Algorithm (E): This algorithm takes the plain text and secret key as inputs, applying substitutions and transformations to create cipher text.
    Formula: E(x,k)=yE(x, k) = yE(x,k)=y
    Example: Using the key “Key2024!” to transform “The account number is 12345” into “ABC987XY65”.
  4. Cipher Text (y): This is the unreadable output of the encryption algorithm, ensuring security during transmission. The unique secret key determines the cipher text’s format.
    Example: “The account number is 12345” becomes “ABC987XY65”.
  5. Decryption Algorithm (D): This algorithm reverses the encryption process, taking the cipher text and the same secret key to recreate the original plain text. Formula: D(y,k)=xD(y, k) = xD(y,k)=x
    Output: Decoding “ABC987XY65” back into “The account number is 12345”.

Requirements for Encryption

To implement encryption, two primary requirements must be met:

  1. Strong Encryption Algorithm: A robust algorithm is essential to produce cipher texts that are resistant to cracking. Even if an attacker gains access to the cipher text, they should not be able to deduce the secret key.
    Example:
     Using AES (Advanced Encryption Standard) ensures highly secure encryption.
  2. Secure Key Sharing: There should be a reliable and secure method for sharing the secret key between the sender and receiver. This prevents attackers from intercepting the key.
    Example:
     Using a secure channel like an encrypted email or a key management service to share “Key2024!”.
End of lesson.