How to encrypt data in javascript and decrypt in php?

后端 未结 5 1947
囚心锁ツ
囚心锁ツ 2020-12-09 05:22

Is there any javascript function that can encrypt data: For example i want to use encrypted data in my URL passed by ajax GET request,

http://sample.com/mypa         


        
5条回答
  •  不知归路
    2020-12-09 05:43

    I'm not sure what you would gain by doing encryption in javascript. Your entire routine and encryption key are effectively available to the public. If you are trying to protect against sniffing, you should use SSL.

提交回复
热议问题