A digital signature is a cryptographic technique that verifies the authenticity and integrity of a digital document, message, or data.
A digital signature is created by encrypting a hash with a private key. A hash is a unique string of numbers and letters that is generated from a file using a mathematical algorithm. The hash value is unique to the data, so even a slight change in the data will result in a different hash value.