A digital signature is a cryptographic technique used to verify the authenticity and integrity of digital documents or messages. It is the digital equivalent of a handwritten signature or a stamped seal on a paper document.
Digital signatures use public key cryptography, where a pair of mathematically related keys is generated: a private key and a public key. The private key is kept secret by the signer, while the public key is shared with others. The keys are created in such a way that data encrypted with the private key can only be decrypted with the corresponding public key, and vice versa.