# Digital Signature

> A stamp made with a private key. It proves who sent a message and that nobody changed it.

**Field:** Software Development  
**Category:** Security  
**Also known as:** Cryptographic Signature, Signature Verification, Signed Message

## Think of it like

Think of it like a wax seal on a letter. Only you have the stamp, and anyone can check the seal.

## Definition

A digital signature proves who made a message and that nobody changed it. The sender makes it with their private key. Anyone with the matching public key can check it. If even one letter of the message changes, the check fails. Software updates, JSON Web Tokens and HTTPS certificates all carry signatures.

## Example

Jack's phone gets an app update. Before it installs, the phone checks the maker's signature and refuses a copy that was tampered with.

## Why it matters

It lets you trust a file or message that passed through strangers' hands. Without it, anyone could fake an update.

## Common mistake

Thinking a signature hides the message. It proves who sent it, but anyone can still read it unless it is also encrypted.

## Three principles

- **Made with the private key.** Only the owner can make it.
- **Checked with the public key.** Anyone can check it.
- **Breaks on change.** One edit and the check fails.

## Related terms

- [Public-Key Cryptography](https://learn.benibix.com/term/development/public-key-cryptography)
- [Hashing (Cryptography)](https://learn.benibix.com/term/development/hashing)
- [JSON Web Token (JWT)](https://learn.benibix.com/term/development/json-web-token)
- [Encryption](https://learn.benibix.com/term/development/encryption)
- [Transport Layer Security (TLS)](https://learn.benibix.com/term/infrastructure/tls)
- [Code Signing](https://learn.benibix.com/term/development/code-signing)
- [Crypto Wallet](https://learn.benibix.com/term/development/crypto-wallet)

## Told apart from

- [Digital Signature vs Encryption](https://learn.benibix.com/compare/digital-signature-vs-encryption): People think a digital signature hides a message, and it does not. Encryption scrambles a message so only the right key can read it. A signature leaves the message open to read. It proves who sent it and that nobody changed it. Many systems use both, one to keep secrets and one to build trust.

![Two rows. To keep a secret: anyone locks a message with Emma's public key, it becomes scrambled, and only Emma's private key, lit up, opens it. To prove who sent it: Emma signs with her private key, lit up, the message travels with a signature, and anyone checks it with Emma's public key.](https://learn.benibix.com/diagrams/dev2-public-key.svg)

---

Source: https://learn.benibix.com/term/development/digital-signature
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
