Digital signatures work by demonstrating that a message or document has remained the same since it was signed. This is accomplished by creating a unique algorithm of the message or document and encrypting it with the sender’s unique and private key.