A digital signature is a secure and electronic way of verifying the authenticity and integrity of a document or message. It involves the use of cryptographic techniques to create a unique "stamp" that ensures the content hasn't been altered and was indeed signed by the intended party.
In the first step, a digital signature is created using a pair of cryptographic keys – a private key held by the sender and a corresponding public key available to everyone.
When a document or message needs to be signed, the sender's private key is used to create a digital signature unique to that content.
The recipient uses the sender's public key to verify the signature, confirming the document's authenticity and integrity. Digital signatures provide trust in electronic communications.