【发布时间】:2017-08-18 19:45:40
【问题描述】:
我想加密我的 url 参数,例如: http://localhost/myapps/user/profile/john 至 http://localhost/myapps/user/profile/{'john' 的加密值}
在代码点火器中。
另一方面,每次刷新特定数据的加密值都会发生变化。但我需要这个静态(特定输入值的唯一值总是)。
【问题讨论】:
标签: php codeigniter
我想加密我的 url 参数,例如: http://localhost/myapps/user/profile/john 至 http://localhost/myapps/user/profile/{'john' 的加密值}
在代码点火器中。
另一方面,每次刷新特定数据的加密值都会发生变化。但我需要这个静态(特定输入值的唯一值总是)。
【问题讨论】:
标签: php codeigniter
【讨论】:
$this->load->library('encrypt');//load this library.
$config['encryption_key'] = "YOUR KEY"; // application/config/config.php
$this->encrypt->encode();//Data encryption and returns it as a string
$this->encrypt->decode();//Decrypts an encoded string.
【讨论】: