aes加密 对称加密
In my last post I talked about using the cfusion_encrypt() and cfusion_decrypt() functions for creating URL & DB safe encrypted strings.
在我的上一篇文章中,我谈到了如何使用cfusion_encrypt()和cfusion_decrypt()函数创建URL和DB安全加密字符串。
As I mentioned before this isn’t for everyone because the functions are undocumented and not available to all users, ie those of you on shared hosting plans.
正如我之前提到的,这并不适合所有人,因为这些功能没有文档说明,并且并非对所有用户(即共享托管计划中的所有用户)都可用。
Well I was browsing the web and came across this thread on the House of Fusion mailing list which offers an alternative way to encrypt/decrypt strings for DB insertion
好吧,我正在浏览网络,并在“ 众议院之家”邮件列表中遇到了该线程 , 该线程列表提供了另一种方法来加密/解密字符串以插入数据库
The code look like so:
代码如下所示:
This produces a db safe string
This produces a db safe string
This decrypts the string
这解密字符串
Pretty straight forward and this should work on your shared hosting environment too! Just be sure to check with your IHP to ensure you have access to these functions.
非常简单,这也应该适用于您的共享托管环境! 只需确保与您的IHP联系,以确保您可以使用这些功能。
翻译自: https://www.sitepoint.com/encryption-for-the-masses/
aes加密 对称加密