2

次のようなURLパラメータを暗号化したい: http:// localhost / myapps / user / profile / john to http:// localhost / myapps / user / profile / {encrypted value of'john'}

codeigniterで。

一方、特定のデータのすべての更新暗号化値の変更。しかし、私はこの静的なものが必要です(特定の入力値に対して常に一意の値)。

4

2 に答える 2

1

参照:http ://www.99points.info/2010/06/php-encrypt-decrypt-functions-to-encrypt-url-data/

于 2012-05-07T13:31:44.673 に答える
0
$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. 
于 2017-08-18T11:45:40.520 に答える