files/en-us/glossary/signature/security/index.md
A signature, or digital signature, is a {{glossary("protocol")}} showing that a message is authentic.
From the {{glossary("hash function", "hash")}} of a given message, the signing process first generates a digital signature linked to the signing entity, using the entity's private {{glossary("key")}}.
On receiving the message, the verification process
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.