Welcome Guest, Not a member yet? Register   Sign In
Call to undefined method Config\Encryption::creatKey()
#1

I read the documentation as wrote my exactly based on the doc.

PHP Code:
    $encrypter = \Config\Services::encrypter();
     
$key Encryption::creatKey(32); //Class 'App\Controllers\Encryption' not found
     
$key = \Config\Encryption::creatKey(32); //Call to undefined method Config\Encryption::creatKey() 
Reply
#2

$key = \CodeIgniter\Encryption\Encryption::createKey(32);
Reply
#3

(09-06-2020, 11:42 AM)paulbalandan Wrote: $key = \CodeIgniter\Encryption\Encryption::createKey(32);

Yes. it works, thanks.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB