2012-05-07 4 views
2

私は、次のような私のURLパラメータを暗号化したい:CodeIgniterのに http://localhost/myapps/user/profile/johnhttp://localhost/myapps/user/profile/ { 'ジョンの暗号化された値}CodeigniterでURL​​を暗号化および復号化する方法。すべての更新暗号化された値の変更

を。

他のすべて特定のデータのすべてのリフレッシュ暗号化値の変更。しかし、私はこの静的(特定の入力値に対して常に一意の値)が必要です。

+1

http://stackoverflow.com/a/10416814/337055をあなたはCodeIgniterの中のライブラリとして使用することができます – Philip

答えて

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. 
+1

これがどのように問題を解決するかについてもっと説明してください – Adonis

関連する問題