When I encrypt my ID using encrypt library that time it gives me an error like :
Thanks for your help
When I encrypt my ID using encrypt library that time it gives me an error like :
Thanks for your help
I'm using php 7.2 and I can solve using the new library encryption recommend.
Example:
// #Encrypt
$this->load->library('encryption');
$to_encrypt="some value";
$this->encryption->initialize(
array(
'cipher' => 'aes-256',
'mode' => 'ctr',
'key' => $this->config->config['encryption_key']
)
);
echo $this->encryption->encrypt($to_encrypt);
More Info -> https://codeigniter.com/userguide3/libraries/encryption.html