加密/解密JSON字符串的最佳方法是什么 [英] What is the best way to encrypt/decrypt a json string
本文介绍了加密/解密JSON字符串的最佳方法是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个运行mysql和php的网络服务器,它将数据发送到json字符串.
I have a webserver running mysql and php which sends data to a json string.
我有第二台Web服务器,该服务器读取数据然后显示.
I have a second webserver which reads the data and then displays it.
目前一切正常.
我需要在字符串中添加一些敏感数据,所以我想知道使用php加密/解密json的最佳方法是什么?
I need to add some sensitive data into the string, so I was wondering what is the best way to encrypt/decrypt the json using php?
有人可以帮忙吗??
推荐答案
我敢打赌,最好的方法是使用SSL(HTTPS),我建议您阅读操作方法部分.
I bet the best way is use SSL (HTTPS) and I recommend you to read the OWASP Guide and especially the How-To section.
这篇关于加密/解密JSON字符串的最佳方法是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文