Home > Backend Development > PHP Tutorial > php?表单数据加密解决办法

php?表单数据加密解决办法

WBOY
Release: 2016-06-13 12:25:19
Original
1116 people have browsed it

php?表单数据加密

<br />var json = encodeURI(JSON.stringify(data));<br /><br />如何对  JSON.stringify(data) 进行加密.<br />
Copy after login

------解决思路----------------------
虽然可用 js 实现各种加密算法,但是 js 是解释执行的,所以加密过程都展现在用户面前。因此加密只是摆设而已
------解决思路----------------------
用户可以看到js代码,所以js做加密没什么用
除非你把js代码混淆化什么的让他没法看。。。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template