Digital signatures use public and private key cryptography to provide the security of a handwritten signature for digital documents. The sender uses their private key to encrypt a hash of the message, creating a digital signature. The receiver can then use the sender's public key to decrypt the signature and verify that it matches a hash of the received message, proving it came from the sender and was not altered. Digital signatures authenticate the sender and ensure integrity of the message. They prevent repudiation of signatures but reliance on private keys means signatures are suspect if a private key is compromised.