次のようなURLパラメータを暗号化したい: http:// localhost / myapps / user / profile / john to http:// localhost / myapps / user / profile / {encrypted value of'john'}
codeigniterで。
一方、特定のデータのすべての更新暗号化値の変更。しかし、私はこの静的なものが必要です(特定の入力値に対して常に一意の値)。
次のようなURLパラメータを暗号化したい: http:// localhost / myapps / user / profile / john to http:// localhost / myapps / user / profile / {encrypted value of'john'}
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.