A digital signature is a cryptographic technique used to authenticate the integrity, authenticity, and nonrepudiation of digital documents, messages, or other electronic data. It is a digital equivalent of a handwritten signature and provides a way to verify the integrity and origin of electronic documents in the digital world.