Course contentsShow
← Computer Science
Lesson 2432 of 2,87254. Cryptography FundamentalsFree lesson

What are Digital Signatures?

Definition and purpose of digital signatures for authentication, integrity, and non-repudiation.

What are Digital Signatures?

You'll learn: What digital signatures are and why they're essential for proving who sent a message and that it hasn't been tampered with.

The Core Idea

A digital signature is a cryptographic mechanism that binds a message to its sender, proving both who created it and that it hasn't been altered. Think of it like a tamper-evident seal on a package combined with a handwritten signature—but mathematically guaranteed.

When you digitally sign data, you use asymmetric cryptography (like RSA) and hash functions together. Here's the simplified flow:

  1. Hash the message – Create a fixed-size digest of your data
  2. Encrypt the hash with your private key – Only you can do this
  3. Attach the signature – Send both the message and this encrypted hash

Anyone can verify your signature by:

  1. Hashing the received message themselves
  2. Decrypting your signature using your public key
  3. Comparing both hashes—if they match, it's authentic and unmodified

The Three Guarantees

Digital signatures provide:

  • Authentication: Proves the message came from you (only your private key could create this signature)
  • Integrity: Confirms the message wasn't altered (any change would produce a different hash)
  • Non-repudiation: You cannot deny signing it later (your private key is uniquely yours)

This is fundamentally different from encryption—signatures don't hide the message content; they prove its origin and authenticity.

Key Takeaway: Digital signatures use asymmetric cryptography and hash functions to cryptographically prove who sent a message and that it remains unchanged, providing authentication, integrity, and non-repudiation.