What is cryptography? How can you secure a network using cryptography? Clarify.
5 marks
Question source
- Exam year
- 2083 BS / 2026 AD
- Level
- Fifth Level
- Paper
- Paper II – Information Technology and Management
- Section
- Section B: Medium Answer Questions
Model answer
Cryptography
Cryptography is the science and practice of securing information by transforming it into an unreadable format so that only authorized parties can understand it. The original readable data is called plaintext; the transformed unreadable form is ciphertext.
Goals of cryptography:
- Confidentiality — only authorized parties can read the data
- Integrity — data has not been tampered with in transit
- Authentication — verify the identity of communicating parties
- Non-repudiation — sender cannot deny having sent the message
Types of Cryptography
1. Symmetric Key Cryptography The same key is used for both encryption and decryption.
- Fast and efficient; suitable for bulk data encryption
- Key distribution problem: both parties must securely share the key beforehand
- Algorithms: AES (Advanced Encryption Standard — 128/256 bit), DES, 3DES, Blowfish
2. Asymmetric Key Cryptography (Public-Key Cryptography) Uses a pair of mathematically linked keys: a public key (shared freely) and a private key (kept secret).
- Data encrypted with the public key can only be decrypted with the private key
- Solves the key distribution problem
- Slower than symmetric; used for key exchange and digital signatures
- Algorithms: RSA, ECC (Elliptic Curve Cryptography), Diffie-Hellman
3. Hash Functions (One-Way Cryptography) Converts data of any size into a fixed-length hash digest. The process is one-way — you cannot reverse the hash to get the original data.
- Used for data integrity verification and password storage
- Algorithms: MD5 (128-bit, now insecure), SHA-256, SHA-3
How to Secure a Network Using Cryptography
1. HTTPS / SSL-TLS All web traffic between browsers and servers is encrypted using TLS (Transport Layer Security). The server presents a digital certificate (issued by a Certificate Authority), and an asymmetric handshake establishes a shared symmetric session key. All data is then encrypted symmetrically for the session. Banks use this for all online banking portals.
2. VPN (Virtual Private Network) A VPN creates an encrypted tunnel between two endpoints (e.g., employee laptop and bank's internal server) using IPsec or SSL/TLS. All traffic through the tunnel is encrypted, protecting it from eavesdropping on public networks.
3. SSH (Secure Shell) Network administrators use SSH instead of unencrypted Telnet to manage servers and routers remotely. SSH encrypts the entire session including authentication.
4. Digital Certificates and PKI A Public Key Infrastructure (PKI) using X.509 certificates authenticates servers and clients. This prevents man-in-the-middle attacks by verifying that you are communicating with the genuine server.
5. End-to-End Encryption (E2EE) Used in messaging (Signal, WhatsApp) and email (PGP/GPG) so that only the sender and recipient can read the message — not even the service provider.