Digital Signature
A Digital signature is a way to ensure that the person who uses the electronic data, document and information is an authorized person. A digital signature is a stamp user places on the data that is unique to him/her and is very difficult to forge.
To sign a document, a person using the keys will use suitable software available to crunch down the data into just a few lines by a process called "hashing".
Use of key in digital signaturePrivate key: The person who made his signature, uses his/her private key to encrypt the hash into encrypted form.
Public key: In the process of verification of the digital signature, the public key of that person who encrypted the hash is used to decrypt the hash.
Note
If the hashes of both the signing and the verification is the same then the signature is valid and the person is authorized to use the data and information.
How a digital signature works