![]() |
I have 1 app for SSO, use CI 3. Now i am creating new app with CI 4. code in CI 3 for encryption :
Code: $otp = 123; code in CI 4 for decryption : Code: $otp = '54322c75199be967a78c4d65906dd1d6a41c54027ddb2ff1a295c5646728f435cf4c3b5e793b57b6a6ecef34de7b7c1ed809632adeb02c5fabdf5f76befe4440PFRX6XAktE/jZXJKjL8fhCcqQw=='; i have try with different option : Code: $config = new \Config\Encryption(); Still getting message authentication failed. but in this documentation states that my CI 3 configuration it same with CI 4 even with default. i noticed some different between CI3 and CI4 on Encryption Lib. There is something about BASE64 decode and encode in CI3 for encrypt or decrypt. i have red in this Github Issue, something aboout bin2hex and hex2bin. and try it at my decrypt like : Code: echo $this->encryption->encrypt(base64_decode($otp)); but still getting authentication failed. note: i cant rewrite my CI3 SSO because it has many another app using CI3. |
Messages In This Thread |
CI 3 to CI 4 Encryption Compability - by ardimardiana - 07-17-2022, 07:18 AM
RE: CI 3 to CI 4 Encryption Compability - by kenjis - 07-18-2022, 05:22 AM
RE: CI 3 to CI 4 Encryption Compability - by kenjis - 07-19-2022, 01:20 AM
RE: CI 3 to CI 4 Encryption Compability - by kenjis - 07-21-2022, 11:25 PM
RE: CI 3 to CI 4 Encryption Compability - by ardimardiana - 07-24-2022, 04:54 AM
RE: CI 3 to CI 4 Encryption Compability - by objecttothis - 02-18-2023, 01:31 PM
|