PromleeBlog

posting thumbnail
An Overview of Cryptography

📅

Encryption 🔗

A technology that provides data confidentiality.
Encryption is the process of converting plaintext into ciphertext.
It consists of the following three algorithms.

Symmetric Encryption 🔗

An encryption method that uses the same key for encryption and decryption.
It is also called secret-key cryptography.
Traditional approaches include block ciphers such as DES, AES, ARIA, and SEED, and stream ciphers such as RC4 and ChaCha.
Advantage: faster than asymmetric encryption.
Disadvantage: key distribution is a problem, and many keys are needed: N(N−1)/2N(N-1)/2 keys.

Asymmetric Encryption 🔗

An encryption method that uses different keys for encryption and decryption.
It is also called public-key cryptography.
Examples include RSA, ElGamal, and NTRU.
Advantages: resolves the key-sharing problem and requires fewer keys: 2N2N keys.
Disadvantage: slower than symmetric encryption.

Encryption terminology (Terminology for Encryption) 🔗


Kerckhoffs's Principle 🔗

An encryption algorithm should remain secure even if it is public. Only the secret key needs to remain protected.
This increases the system's security and makes it easier to communicate with others using different keys.

Basic Types of Attacks against Encryption 🔗

  1. Brute-force attack: tries every possible key to decrypt the ciphertext.
  2. Cryptanalysis: analyzes the structure of an encryption algorithm to infer the plaintext.
    • Ciphertext-only attack
    • Known-plaintext attack
    • Chosen-plaintext attack
    • Chosen-ciphertext attack
    An Overview of Cryptography | PromleeBlog