Encrypter class error |
I have used encrypter class:
Code: $this->encrypter = \Config\Services::encrypter();
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 )
(07-20-2020, 12:16 AM)zoom360 Wrote: I have used encrypter class: Hi , I had a similar problem , you have to load the default encryption configuration in the config folder this way: PHP Code: public function __construct(){ And then you can use $this->encrypter to encrcypt and decrypt, also ensure that OpenSSL is enabled in php.ini , I asked and found the solution to the same problem here (08-12-2020, 05:22 AM)ebuoe Wrote:Thanks !(07-20-2020, 12:16 AM)zoom360 Wrote: I have used encrypter class: |
Welcome Guest, Not a member yet? Register Sign In |