• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Encrypter class error

#1
I have used encrypter class:

Code:
$this->encrypter = \Config\Services::encrypter();

$abc = 'abc/def/ghi';
$encrypt = $this->encrypter->encrypt($abc);
$decrypt = $this->encrypter->decrypt($encrypt);
There is an error "authentication failed".
Reply

#2
You should use base_64 encode and decode for that.

Other wise illegal characters can cause it to crash.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.