php加密和解密 [英] php encrypt and decrypt
本文介绍了php加密和解密的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想加密超链接...
解决方案
如果可以使用数据库,可以创建一个表来将文件映射到一个id。
创建'mapping_table'
id - integer
file_location - string
您的网址看起来像 localhost / waterwell / e_book .php?id = 12
。
can anyone tell me how to encrypt and decrypt a URL string ?
I want to encrypt a hyperlink ...
解决方案
If you can use database,you could create a table to map a file to an id.
Create a 'mapping_table'
id - integer
file_location - string
Your URL would look something like localhost/waterwell/e_book.php?id=12
.
这篇关于php加密和解密的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文