Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenSSLHandler: Encrypt/Decrypt #2680

Closed
RedskyThirty opened this issue Mar 10, 2020 · 1 comment · Fixed by #2685
Closed

OpenSSLHandler: Encrypt/Decrypt #2680

RedskyThirty opened this issue Mar 10, 2020 · 1 comment · Fixed by #2685

Comments

@RedskyThirty
Copy link

I have some problem sometimes. An encrypted string cannot be decrypted. I get the error :

Decrypting: authentication failed.
system/Encryption/Handlers/OpenSSLHandler.php(160): CodeIgniter\Encryption\Exceptions\EncryptionException::forAuthenticationFailed()

Have you heard other people who met the same problem?

Also, can you verify this:
www/system/Encryption/Handlers/OpenSSLHandler.php - Line 130
"@throws \CodeIgniter\Encryption\EncryptionException" is not correct. It must be "@throws \CodeIgniter\Encryption\Exceptions\EncryptionException" or "@throws EncryptionException". Isn't it?
And line 148: Method "forStarterKeyNeeded" is not defined.

@musmanikram
Copy link
Contributor

@RedskyThirty Can you please post your code here?
Yes the other points are valid and creating a PR soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants