php - javascript encryption? -


I do not want to use HTTPS

< P> Username and click on any button, click on Show button, you will find a sequence like 2-4-5-7 in the alert box, in this sequence I have generated using Javascript, now I I want to submit this sequence to save it. It is working in the database but when I send this sequence, it goes into plain text, I want to encrypt this sequence and then decrypt it on the server using php and it should be 2-4- Save as 5-7?

How can I do this JavaScript encryption, which can not be considered weak because the Javascript code is visible to the user?

So it will be difficult to sniff middle men

How do I encrypt using JavaScript and dept it into DPP and store and use it in DB in the above example?

Any other solution will help me

Does this encrypted client- Why do you want it to be the only reason for decrypting server-side? If you want to stop the data from being caught between the client and the server, then I suggest using SSL instead. HTTPS protocol is a good way to send the data to the client.

Comments