ScholarQuill logoScholarQuillUniversity Notes
  • Notes
  • Past Papers
  • Blogs
  • Todo
Login
ScholarQuill logoScholarQuillUniversity Notes
Login
NotesPast PapersBlogsTodo
More
SubjectsDiscussionCGPA CalculatorGPA CalculatorStudent PortalCourse Outline
About
About usPrivacy PolicyReportContact
Notes
Past Papers
Blogs
Todo
Analytics
    Current Subject
    🧩
    Information Security
    COMP2120
    Progress0 / 15 topics
    Topics
    1. Information security foundations2. Security design principles3. Security mechanisms4. Symmetric and asymmetric cryptography5. Encryption techniques6. Hash functions and digital signatures7. Key management, authentication and access control8. Software security: Vulnerabilities and protections9. Malware and database security10. Network security: Firewalls and intrusion detection11. Security policies: Formation and enforcement12. Risk assessment in information security13. Cybercrime, law and ethics in information security14. Privacy and anonymity of data15. Practicals of Information security
    COMP2120›Symmetric and asymmetric cryptography
    Information SecurityTopic 4 of 15Regular Notes

    Symmetric and asymmetric cryptography

    2 minread
    387words
    Beginnerlevel

    Symmetric and Asymmetric Cryptography—two of the core techniques used to secure communication and data in the world of Information Security.


    🔐 Symmetric vs Asymmetric Cryptography

    Both are methods of encryption, but they work differently and are used in different scenarios.


    🔁 Symmetric Cryptography (Secret Key)

    🔑 What is it?

    A single key is used for both encryption and decryption.
    Both sender and receiver must share this secret key securely.

    🧠 Key Idea:

    "Same key for both sides."

    ✅ Advantages:

    • Faster than asymmetric (less computationally heavy)
    • Good for encrypting large amounts of data

    ❌ Disadvantages:

    • Key distribution problem – how do you securely share the key?
    • If the key is leaked, security is broken

    🔧 Common Algorithms:

    • AES (Advanced Encryption Standard)
    • DES (Data Encryption Standard – now outdated)
    • Blowfish, RC4

    📦 Use Cases:

    • Encrypting files on disk
    • Secure communication after key is exchanged (e.g., VPNs)
    • SSL/TLS session encryption

    🔁 Example of Symmetric Encryption:

    Alice wants to send a message to Bob.
    They both use the same secret key to encrypt and decrypt the message.
    

    🔄 Asymmetric Cryptography (Public Key)

    🔑 What is it?

    Uses a pair of keys:

    • Public key – shared with everyone
    • Private key – kept secret

    You encrypt with one key, and decrypt with the other.

    🧠 Key Idea:

    "Different keys for each side."

    ✅ Advantages:

    • No need to share a secret key upfront
    • Enables digital signatures and secure key exchange

    ❌ Disadvantages:

    • Slower than symmetric encryption
    • Not efficient for encrypting large data

    🔧 Common Algorithms:

    • RSA (Rivest–Shamir–Adleman)
    • ECC (Elliptic Curve Cryptography)
    • DSA (Digital Signature Algorithm)

    📦 Use Cases:

    • Secure email (PGP)
    • Digital signatures
    • Key exchange in TLS/SSL
    • Blockchain and cryptocurrency transactions

    🔁 Example of Asymmetric Encryption:

    Alice wants to send a message to Bob.
    She encrypts the message using Bob's public key.
    Only Bob can decrypt it using his private key.
    

    🔄 Summary Table:

    Feature Symmetric Asymmetric
    Keys Used One (shared secret key) Two (public and private keys)
    Speed Faster Slower
    Security Key must be securely shared No need to share private key
    Use Cases Data-at-rest, VPN Digital signatures, SSL keys
    Examples AES, DES, RC4 RSA, ECC, DSA

    💡 Fun Fact:

    Most real-world secure systems (like HTTPS) use both:

    • Asymmetric encryption to securely exchange a key
    • Then symmetric encryption for the actual data transfer (because it's faster)

    Previous topic 3
    Security mechanisms
    Next topic 5
    Encryption techniques

    Past Papers

    Open this section to load past papers

    Click on Show Past Papers to see past papers.
    On This Page
      Reading Stats
      Est. reading time2 min
      Word count387
      Code examples0
      DifficultyBeginner