How to sign and verify data using digital certificate

While communicate with other there would be a sensitive data which need to reach the other end in secure manner.

Digitally signed data comes in to picture which provide us a secure and confidential way to communicate.

Below are the code to digitally sign the plain text and send it over other end, there signed data will be verified using the public key.

To sign and verify the data we need Private and Public key. I am going to use Private key to sign the text and using public key I am going to validate the signed text.

Certificate Encrypt and Decrypt using SHA1 algorithm

Sign_verify_code

 

Signing text using Private Key
Signing_code

 

Verify signed text in other end using public key

Verify_Code

 

Tagged:

One thought on “How to sign and verify data using digital certificate

  1. Padmanaban October 5, 2020 at 5:03 am Reply

    Nice post kethare

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: