1. Gyanastra
  2. Computer Networks
  3. Cryptography and RSA
  4. Importance of Network Security and Terminology: Plaintext, Ciphertext, Encryption
Free lesson, no account needed 4 min read 40 practice questions after it
Asked in past papers3 times
  • UGC NET201920122009

Computer Networks · Cryptography and RSA

Importance of Network Security and Terminology: Plaintext, Ciphertext, Encryption

Overview

Data such as a bank password must travel from client to server over wired or wireless media, and the transmission path is not secured — anyone can look into the message.
Network security exists to protect such data, and its core mechanism is converting the readable message into an unreadable one before transmission. The terminology and process of this conversion form the basis of cryptography.

Key concepts

  • Plaintext: the actual message. Generally, whatever you type is plaintext, and it is readable.
  • Ciphertext: the converted message, which is in an unreadable format. It is what you get after encryption.
  • Encryption: the process of converting plaintext into ciphertext.
  • Decryption: the process of converting ciphertext back into plaintext.
  • Cryptography: a method of storing and transmitting data in a particular form so that only those for whom it is intended can read and process it.
    It is a collection of methods (algorithms and procedures) using which plaintext is converted into ciphertext, so that only the people you want to read it are able to read it.
  • Why network security is important: when you open a website (for example, a net-banking site) at home and enter your password, that password and other information must be passed from the client to the server.
    While the data is being transmitted — through wireless or wired media — you are not sure what is happening on the way; the entire transmission path is not secured, and anyone can look into the message.
    For this reason, security is needed, and various methods are used to protect the data.

How it works

  1. A user (client) enters sensitive information such as a bank password, which must travel to the server.
  2. During transmission over wired or wireless media, the path is not secure — anyone can look into the message.
  3. To protect it, the plaintext is converted into an unreadable format called ciphertext, so that no one can read it on the way.
  4. This conversion is done using strong algorithms, so that others are not able to read the ciphertext. (There are methods by which people can still try to read ciphertext, which is why strong algorithms are used.)
  5. The process of converting plaintext to ciphertext is encryption. The ciphertext is then sent.
  6. At the receiving side, the ciphertext is decrypted back into plaintext.
  7. The whole set of algorithms and procedures involved in this is called cryptography.

Formulas

Encryption:  plaintext  →  ciphertext
Decryption:  ciphertext →  plaintext

Comparison

TermMeaning
PlaintextThe actual message; generally whatever you type, and it is readable
CiphertextThe converted message, in an unreadable format; what you get after encryption
EncryptionThe process of converting plaintext into ciphertext
DecryptionThe process of converting ciphertext back into plaintext

Revision summary

  • Plaintext = readable original message; ciphertext = unreadable converted message.
  • Encryption: plaintext → ciphertext. Decryption: ciphertext → plaintext.
  • The entire purpose of encryption is to make the message unreadable during transmission.
  • Cryptography = collection of methods/algorithms/procedures to convert plaintext into ciphertext so that only the intended recipients can read and process the data.
  • Transmission over wired or wireless media is inherently insecure; anyone on the path can look into the message, which is why network security is required.
  • Strong algorithms are used because there are methods by which people can still try to read ciphertext.

Previous-year exam insights

  • A cryptographic system (cipher) is defined by the pair of algorithms (E, D) plus the key(s): ciphertext C = EKE_{K}(P) and plaintext P = DKD_{K}(C);
    the security must rest on the secrecy of the key, not on the secrecy of the algorithm (Kerckhoffs's principle).
  • Symmetric (secret-key) encryption uses the same key for encryption and decryption and is fast but needs secure key distribution; asymmetric (public-key) encryption uses a public key to encrypt and a private key to decrypt and solves key distribution but is slow, so it is used for key exchange/digital signatures rather than bulk data.
  • Classical ciphers: Caesar cipher is a shift cipher (C = (P + k) mod 26);
    a substitution cipher replaces each symbol by another;
    a transposition cipher permutes the positions of symbols without changing them.
    Substitution preserves letter frequencies, which enables frequency-analysis attacks.
  • Perfect secrecy (Shannon): a cipher is unconditionally secure if the ciphertext gives no information about the plaintext, i.e. P(M|C) = P(M);
    the one-time pad (XOR of plaintext with a truly random key as long as the message, used only once) achieves this.
  • Attacker models to know: ciphertext-only, known-plaintext, chosen-plaintext and chosen-ciphertext attacks; brute-force attack cost grows with key size (an n-bit key needs up to 2n2^{n} trials), so key length determines practical security.
  • Goals of network security: confidentiality (secrecy of data), authentication (verify identity), integrity (data not altered), and non-repudiation (sender cannot deny); encryption alone gives confidentiality, while integrity/authentication need MACs or digital signatures.
Pages 1–2 of 2