A digital signature is an electronic way to prove that a message or document is authentic and hasn't been changed. It works like a handwritten signature but is more secure because it uses encryption to verify the sender's identity and the content's integrity.