Learn the concept.
A digital signature links specific data to a signing key. It can help reveal changes and verify a publisher, but it is not a malware scan or an endorsement. Think of two questions: does this signature verify, and do I trust the identity behind that key?
Follow the two keys
The signer creates a signature with a private key and keeps that key secret. A verifier checks the signature with the corresponding public key. This is different from drawing a signature image onto a document.
Keep the signed content intact
Changing the data covered by a signature makes the old signature fail verification. A failure tells you the check did not succeed; investigate the cause instead of assuming every failure proves an attack. Signing alone does not hide the contents.
Verify the publisher as well
A public key must be reliably associated with the publisher you expect, for example through a properly validated certificate. Someone else can sign their own file successfully. Even a valid signature from the expected publisher does not guarantee harmless software or truthful content.
Field example07 / A
Put it in context
A fictional Harbor Books payment note says “Pay Harbor Books $40” and is signed with Harbor’s key. Keeping the signature but changing the amount to $4000 breaks that match. A stranger could instead sign a new note with their own key. That signature might verify with their key, but it would not become Harbor’s signature.
A signature takes two checks
Illustration only. No real document or signing key is uploaded.
- Sign
The publisher uses a private key to sign specific content.
- Verify
Use the matching public key to check that content and signature.
- Assess trust
Confirm the expected publisher and evaluate the file’s purpose and source.
Read the visualA file has a valid digital signature, but the signer is an unfamiliar publisher. What can you conclude?
Signature verification checks the signed data against a key. You still need a trustworthy link from that key to the expected publisher, and you still need to assess the file and its source.
Verify the original file, change its amount, then try a different public key. Watch which combinations still verify.
Put it to the test.
Explore the practice space, then answer the check-in below. A correct answer lets you save this lesson to your progress.
INTERACTIVE VISUAL · FICTIONAL PRACTICE
Change the file. Check the signature.
Verify the original file, change its amount, then try a different public key. Watch which combinations still verify.
Enable JavaScript to use the diagram controls. No real accounts or files are accessed. The illustrated explanation and recap remain available without JavaScript.
Take this with you.
Check the signed data, the verification result, and the expected publisher. A valid signature is one piece of the trust decision.
Explore a career track