Encryption output |
Hello guys!
I have problem with CI4 encryption and decryption... The problem is from encryption method it is show strange output. Sample Output: http://prnt.sc/u2vmwi My Setting in .env: PHP Code: encryption.key = 'thisismykey' My code: PHP Code: $encrypter = \Config\Services::encrypter(); I hope someone can help me about the output from encryption. Btw, CodeIgniter framework is awesome!
This is me. JK not me.
The output of encrypt is a binary string. So it will render on your screen strangely. You should encode it using either bin2hex or base64_encode before echoing.
|
Welcome Guest, Not a member yet? Register Sign In |