Information Security Lecture 4
Information Security Lecture 4
ATTOCK CAMPUS
SYMMETRIC AND ASYMMETRIC CRYPTOGRAPHY
INTRODUCTION TO CRYPTOGRAPHY
• What is Cryptography?
• The practice of securing information by converting it into an unreadable format.
• Why is it Important?
• Protects sensitive data from unauthorized access.
• Where is it Used?
• Online banking, secure messaging (WhatsApp), VPNs, and digital signatures.
TYPES OF CRYPTOGRAPHY
1. Symmetric Cryptography – Uses one key for both encryption and decryption.
2. Asymmetric Cryptography – Uses two keys (public and private) for encryption and
decryption.
SYMMETRIC CRYPTOGRAPHY
• Definition: A single secret key is used for both encrypting and decrypting data.
• How it Works:
• Sender and receiver share the same key.
• Data is encrypted with the key and decrypted with the same key.
• Examples: AES (Advanced Encryption Standard), DES (Data Encryption Standard).
• Real-World Example: Encrypting Wi-Fi networks using WPA2 security.
ADVANTAGES AND DISADVANTAGES OF SYMMETRIC CRYPTOGRAPHY
• Advantages:
• Fast and efficient for encrypting large amounts of data.
• Requires less computational power.
• Disadvantages:
• Key distribution is challenging; if the key is intercepted, security is compromised.
• Not scalable for large systems.
ASYMMETRIC CRYPTOGRAPHY
• Definition: Uses two keys – a public key for encryption and a private key for decryption.
• How it Works:
• Sender encrypts the message using the receiver’s public key.
• Only the receiver can decrypt it using their private key.
• Examples: RSA (Rivest-Shamir-Adleman), ECC (Elliptic Curve Cryptography).
• Real-World Example: Secure email communication using PGP encryption.
ADVANTAGES AND DISADVANTAGES OF ASYMMETRIC CRYPTOGRAPHY
• Advantages:
• More secure since private keys are never shared.
• Ideal for digital signatures and secure online transactions.
• Disadvantages:
• Slower than symmetric encryption.
• Requires more computational power.
KEY DIFFERENCES BETWEEN SYMMETRIC AND ASYMMETRIC
CRYPTOGRAPHY
• Symmetric Cryptography: Used for securing database files, VPNs, and Wi-Fi networks.
• Asymmetric Cryptography: Used in digital signatures, secure email, and SSL/TLS for
websites.