Encryption using Public key and Private key in PHP using mySql database


Write a php code for generating public key and private key on page one and on page two encrypt user entered data using public key and store the encrypted data in mysql database and on page three decrypt encrypted data from mysql database and display on screen.

Here is an example of generating a public and private key pair on page one, encrypting data on page two using the public key, storing the encrypted data in a MySQL database, and then decrypting the data on page three using the private key and displaying it on the screen in PHP:


Rajesh Kumar
Follow me
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x