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›Encryption techniques
    Information SecurityTopic 5 of 15Regular Notes

    Encryption techniques

    2 minread
    415words
    Beginnerlevel

    🔐 Encryption Techniques

    Encryption is the process of converting plaintext (readable data) into ciphertext (scrambled, unreadable data) using a key, so only authorized users can decrypt it back into the original form.

    Encryption techniques fall into two main categories:


    1. ✅ Symmetric Encryption Techniques

    Same key is used for both encryption and decryption.

    🔧 Common Techniques:

    • AES (Advanced Encryption Standard)

      • Most widely used today
      • Very secure and fast
      • Key sizes: 128, 192, or 256 bits
    • DES (Data Encryption Standard)

      • Older method (56-bit key)
      • Now considered insecure due to short key length
    • 3DES (Triple DES)

      • Applies DES three times with different keys
      • More secure than DES, but slower
    • Blowfish

      • Fast and strong for small-scale applications
      • Key length: 32 to 448 bits
    • RC4 / RC5 / RC6

      • Stream (RC4) and block (RC5/RC6) ciphers
      • RC4 is outdated due to vulnerabilities

    2. 🔁 Asymmetric Encryption Techniques

    Uses a pair of keys: one public, one private.

    🔧 Common Techniques:

    • RSA (Rivest–Shamir–Adleman)

      • Most well-known asymmetric method
      • Used for secure data transmission and digital signatures
    • ECC (Elliptic Curve Cryptography)

      • Strong security with smaller key sizes
      • Great for mobile devices and IoT
    • ElGamal

      • Based on Diffie-Hellman key exchange
      • Used in PGP (Pretty Good Privacy)

    3. 🔄 Hybrid Encryption

    Combines symmetric and asymmetric techniques to get the best of both.

    💡 How it works:

    • Use asymmetric encryption to securely exchange the symmetric key
    • Use symmetric encryption to encrypt actual data (for speed)

    ✅ Used in SSL/TLS, VPNs, and secure email (e.g., PGP, S/MIME)


    4. 🧮 Hash Functions (Not encryption but related)

    Convert data into a fixed-length "digest".
    ✅ One-way: You can’t reverse it to get the original data.

    Common Hash Functions:

    • SHA-256 (Secure Hash Algorithm)
    • MD5 (Old, weak)
    • SHA-1 (Weakened, not recommended)

    ✅ Used for integrity checking, digital signatures, password storage.


    📦 Summary Table:

    Technique Type Key Feature Example Use Case
    AES Symmetric Fast, secure, modern standard File & disk encryption
    DES / 3DES Symmetric Older, slower (3DES more secure) Legacy systems
    RSA Asymmetric Public/private key encryption Secure emails, SSL
    ECC Asymmetric Secure with shorter keys Mobile apps, blockchain
    ElGamal Asymmetric Based on Diffie-Hellman PGP, key exchange
    Hybrid Mixed Combines best of both worlds HTTPS, VPNs
    Hashing One-way Integrity checking (not encryption) Passwords, data verification

    🧠 Quick Analogy:

    • Symmetric encryption is like a locked box with one key—you send the box and share the key somehow.
    • Asymmetric encryption is like a mailbox—anyone can drop a message in (public key), but only you can unlock it (private key).
    Previous topic 4
    Symmetric and asymmetric cryptography
    Next topic 6
    Hash functions and digital signatures

    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 count415
      Code examples0
      DifficultyBeginner