![]() |
I'm converting an app from CI 3.1.13 to CI 4.3.1
In CI3 I had: PHP Code: $CI =& get_instance(); In CI4 I have: PHP Code: $encrypter = Services::encrypter(); In Config/Encryption.php I have: PHP Code: public string $key = REDACTED; //32 Character encryption key Between the two version the key has not changed and the digest value hasn't changed. When I step through the code I see that the decrypted result is garbage characters. I see that it's identifying the encryption algorithm as aes-256-ctr. I don't know if that's the correct algorithm or not from what CI3 was using, but something is off. From reading another forum post, I thought this was CI3 compatible as of CI 4.3.0. |
Messages In This Thread |
decrypt() returning incorrect result - by objecttothis - 02-17-2023, 06:17 AM
RE: decrypt() returning incorrect result - by kenjis - 02-17-2023, 05:20 PM
RE: decrypt() returning incorrect result - by objecttothis - 02-18-2023, 09:56 AM
RE: decrypt() returning incorrect result - by kenjis - 02-18-2023, 05:28 PM
RE: decrypt() returning incorrect result - by objecttothis - 02-18-2023, 02:15 PM
RE: decrypt() returning incorrect result - by kenjis - 02-18-2023, 04:25 PM
RE: decrypt() returning incorrect result - by objecttothis - 02-19-2023, 05:44 AM
RE: decrypt() returning incorrect result - by kenjis - 02-21-2023, 05:39 PM
|