

In Digital Signature, the private key is used for encryption while the public key is used for decryption.The sender uses a private key to encrypt the message while the receiver uses the public key of the sender to decrypt the message. However, the roles of a public key and private key are different here.


In Digital Signature, a public key encryption technique is used to sign a document.We can sign a document in two ways: to sign a whole document and to sign a digest. When we send a document electronically, we can also sign it. The basic idea behind the Digital Signature is to sign a document. We have already discussed the first aspect of security and other three aspects can be achieved by using a digital signature. We know that there are four aspects of security: privacy, authentication, integrity, and non-repudiation. The Digital Signature is a technique which is used to validate the authenticity and integrity of the message.
