kb/data/developer.mozilla.org/en-US/docs/Glossary/Signature/Security-0.md

11 KiB

title chunk source category tags date_saved instance
Signature (security) - Glossary | MDN 1/3 https://developer.mozilla.org/en-US/docs/Glossary/Signature/Security reference web, html, css, javascript, documentation 2026-05-05T05:45:21.589419+00:00 kb-cron

MDN HTML HTML: Markup language

HTML reference

HTML guides

Markup languages

CSS CSS: Styling language

CSS reference

CSS guides

Layout cookbook

JavaScriptJS JavaScript: Scripting language

JS reference

JS guides

Web APIs Web APIs: Programming interfaces

Web API reference

Web API guides

All All web technology

Technologies

Topics

Learn Learn web development

Frontend developer course

Learn HTML

Learn CSS

Learn JavaScript

Tools Discover our tools

About Get to know MDN better

Blog

  1. Glossary
  2. Signature
  3. Signature (security)

Signature (security)

A signature , or digital signature , is a protocol showing that a message is authentic. From the hash of a given message, the signing process first generates a digital signature linked to the signing entity, using the entity's private key. On receiving the message, the verification process

  • authenticates the sender - uses the sender's public key to decrypt the signature and recover the hash, which can only be created with the sender's private key, and
  • checks message integrity - compares the hash with a newly calculated one from the received document (the two hashes will differ if the document has been tampered with)

The system fails if the private key is compromised or the recipient is deceitfully given the wrong public key. Digital signatures rely on asymmetric cryptography, also known as public-key cryptography.

In this article

See also