Skip to main content

Short note: cryptography

Short answer

Cryptography hides information by converting plaintext to ciphertext using keys, providing confidentiality, integrity, authentication, and non-repudiation. Symmetric cryptography uses one shared key (fast but key distribution is hard); asymmetric uses public/private key pairs (solves distribution but slower). Hash functions produce fixed-length digests for integrity checks and password storage.

Write a short note on cryptography.

Cryptography is the science of hiding information by converting it into a form that unauthorised persons cannot read, so that only those who hold the secret key can recover it. It provides confidentiality, integrity, authentication and non-repudiation.

Terms

  • Plaintext (P): the original readable message.
  • Ciphertext (C): the scrambled message.
  • Encryption: C = E(K, P). Decryption: P = D(K, C).
  • Key: the secret value controlling the cipher. Kerckhoffs' principle: the algorithm is public; only the key is secret.
 Plaintext --[Encrypt, key K1]--> Ciphertext --[Decrypt, key K2]--> Plaintext

Types

  1. Secret-key (symmetric) cryptography: the same key is used for encryption and decryption (DES, 3DES, AES). Fast, but key distribution is a problem.
  2. Public-key (asymmetric) cryptography: a pair of keys: the public key for encryption and the private key for decryption (RSA). Solves key distribution, but is slower.
  3. Hash functions (one-way): produce a fixed-length digest (MD5, SHA-1, SHA-256); used for integrity checks and password storage.

Uses

Secure communication (SSL/TLS, VPN), digital signatures, password storage and encrypted file systems.

Classical ciphers include substitution (Caesar) and transposition ciphers.

✓ Answer checked by Claude Opus 5.5 (high effort)

All Operating System chapter 8 questions →