Home > Backend Development > PHP Tutorial > PHP接口加密,该怎么解决

PHP接口加密,该怎么解决

WBOY
Release: 2016-06-13 13:00:59
Original
1170 people have browsed it

PHP接口加密
PHP页面作为通用接口负责和数据库进行交互,客户端调用jquery的ajax函数来取得该接口的数据。
如果我直接调用该接口页面,那么该接口页面的数据就会完全暴露出来。
我想问的是,公司中一般都是如何实现两者间的加密和解密?(比如用到的算法或者工具)
------解决方案--------------------
客户端是jquery,在没有另外的控件情况下,解密是在 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