ScholarQuill logoScholarQuillUniversity Notes
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
Study Tools
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
Contact
ScholarQuill logo
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
ScholarQuill logoScholarQuillUniversity Notes
Study PortalCOMP2120Hash Functions Digital…
Ctrl + K
Login
Explore
Search
Semester
Papers
CGPA
    COMP2120

    Information Security

    Progress0 / 15 done
    Topics15
    1Information security foundations2Security design principles3Security mechanisms4Symmetric and asymmetric cryptography5Encryption techniques6Hash functions and digital signatures7Key management, authentication and access control
    8Vulnerabilities and protections9Malware and database security
    10Firewalls and intrusion detection
    11Formation and enforcement12Risk assessment in information security13Cybercrime, law and ethics in information security14Privacy and anonymity of data15Practicals of Information security
    2 min read
    Topic 6 of 15
    Topic Study Note Illustration
    06

    Hash functions and digital signatures

    Hash Functions and Digital Signatures —two core topics in Information Security that work closely together to ensure data integrity, authenticity, and non-repudiation .

    Hash Functions and Digital Signatures—two core topics in Information Security that work closely together to ensure data integrity, authenticity, and non-repudiation.


    🔑 Hash Functions

    🧠 What is a Hash Function?

    A hash function is a mathematical algorithm that takes input data of any size and produces a fixed-size output (called a hash or digest).


    🔍 Key Properties of Good Hash Functions:

    Property Explanation
    Deterministic Same input always gives the same output
    Fast Quickly computes the hash
    Irreversible (One-way) You can't get the original input from the hash
    Collision-resistant Two different inputs should not produce the same hash
    Avalanche effect Small change in input → drastically different hash

    🔧 Common Hash Algorithms:

    • MD5 – obsolete (not secure)
    • SHA-1 – weak, not recommended
    • SHA-256 / SHA-3 – widely used, strong security

    ✅ Uses of Hash Functions:

    • Password storage (hashed, not plain text)
    • Data integrity (detect tampering)
    • Digital signatures (paired with encryption)
    • File integrity checks (e.g., software downloads)

    ✍️ Digital Signatures

    🧠 What is a Digital Signature?

    A digital signature is a cryptographic technique that verifies:

    1. Authenticity – who sent the message
    2. Integrity – the message wasn’t altered
    3. Non-repudiation – the sender can't deny sending it

    🔄 How Digital Signatures Work (Simplified):

    1. Sender creates a hash of the message.
    2. Sender encrypts the hash using their private key → this is the digital signature.
    3. Sender sends the message + signature.

    🛡️ On the receiver’s side:

    1. Receiver decrypts the signature using the sender’s public key → gets the original hash.
    2. Receiver hashes the message themselves.
    3. If both hashes match → ✅ message is authentic and untampered.

    🔧 Algorithms Used:

    • RSA
    • DSA (Digital Signature Algorithm)
    • ECDSA (Elliptic Curve DSA)

    📦 Real-World Use Cases:

    • Email signing (PGP, S/MIME)
    • Software distribution (signed executables)
    • Digital certificates (SSL/TLS)
    • Blockchain transactions

    🔁 Relationship Between Hash Functions & Digital Signatures:

    Hash Function Digital Signature
    One-way, fixed-size output Uses hash of data + encryption
    Ensures integrity Ensures authenticity, integrity, and non-repudiation
    Fast and irreversible Based on asymmetric encryption
    Example: SHA-256 Example: RSA with SHA-256

    🧠 Analogy:

    Think of a hash like a fingerprint of a file.
    A digital signature is like a fingerprint that's been stamped with your unique seal (private key), proving it’s yours and hasn’t been altered.

    ← Previous topic 5
    Encryption techniques
    Next topic 7 →
    Key management, authentication and access control

    Past Papers

    Open this section to view and download past papers

    Click on Show Past Papers to load available exam papers.

    Reading Progress
    0%
    2mremaining
    370words
    Beginnerlevel
    On This Page

    No headings found

    Study Toolkit

    Subject Portal

    Information Security