A digital signature is a cryptographic technique used to verify the authenticity and integrity of a digital message or document. It provides a way for the sender of a message or the creator of a document to ensure that the recipient can be confident in the origin and unchanged nature of the content.