Symmetric Encryption

Overview

Symmetric encryption, or secret-key encryption, is a fundamental cryptographic method where the same key (the secret key) is used for both encryption (converting plaintext to ciphertext) and decryption (recovering the plaintext from the ciphertext). The communication parties must agree upon and securely exchange this secret key beforehand.


Key Information

Terminology:

A symmetric encryption algorithm uses the same key for encryption and decryption.

Encryption Algorithm Notes
AES, AES192, and AES256 AES with a key size of 128, 192, and 256 bits
IDEA International Data Encryption Algorithm (IDEA)
3DES Triple DES (Data Encryption Standard) and is based on DES. We should note that 3DES will be deprecated in 2023 and disallowed in 2024.
CAST5 Also known as CAST-128. Some sources state that CAST stands for the names of its authors: Carlisle Adams and Stafford Tavares.
BLOWFISH Designed by Bruce Schneier
TWOFISH Designed by Bruce Schneier and derived from Blowfish
CAMELLIA128, CAMELLIA192, and CAMELLIA256 Designed by Mitsubishi Electric and NTT in Japan. Its name is derived from the flower camellia japonica.

Notes

  1. GNU Priacy Guard: The GNU Privacy Guard, also known as GnuPG or GPG, implements the OpenPGP standard.
  2. OpenSSL Project: The OpenSSL Project maintains the OpenSSL software.

GNU Privacy Guard

OpenSSL Project


Task

  1. Decrypt the file quote01 encrypted (using AES256) with the key s!kR3T55 using gpg. What is the third word in the file?
    1. gpg --output quote1.txt --decrypt quote01.txt.gpg
    2. Third Word waste
  2. Decrypt the file quote02 encrypted (using AES256-CBC) with the key s!kR3T55 using openssl. What is the third word in the file?
    1. openssl aes-256-cbc -d -in quote02 -out quote2
    2. Third Word science
  3. Decrypt the file quote03 encrypted (using CAMELLIA256) with the key s!kR3T55 using gpg. What is the third word in the file?
    1. gpg --output quote3.txt --decrypt quote03.txt.gpg
    2. Third Word understand

Conclusion

Symmetric encryption is a cryptographic method where a single secret key is used to encrypt plaintext into ciphertext and decrypt it back. While historical algorithms like DES (56-bit key) were broken, modern standards like AES (128/192/256-bit keys) remain secure and provide confidentiality, integrity, and authenticity. Popular implementations include GnuPG (GPG) and OpenSSL. Despite its security benefits, symmetric encryption suffers from a scalability problem because the number of required keys grows quadratically with the number of users, making it impractical for large-scale key distribution.


Resources



Revision #4
Created 2025-11-25 18:38:41 UTC by David Rizzo
Updated 2025-11-25 19:18:26 UTC by David Rizzo