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

cryptEncryptString Decrypt using Laravel #7

Open
jiecerbo opened this issue Sep 18, 2023 · 3 comments
Open

cryptEncryptString Decrypt using Laravel #7

jiecerbo opened this issue Sep 18, 2023 · 3 comments

Comments

@jiecerbo
Copy link

I am facing an issue with cryptEncryptString function in this extension.

I encrypt using the function cryptEncryptString and decrypt using Laravel's Crypt::decryptString, but the decrypted string doesn't match. "i:" is added in the beginning and ";" is added in the end. So if i encrypt the number 18, when i decrypt it i get the value i:18;

Is it not possible to encrypt using the function and decrypt using Laravel?

@helmutkaufmann
Copy link
Owner

If you can, can you try and use version 2 of this plugin?

@jiecerbo
Copy link
Author

I have updated to version 2 but still have the same problem.

@helmutkaufmann
Copy link
Owner

Here we go. In version 2, I don't have any issues:

{{ crypt().decryptString(crypt().encryptString("This string gets encrypted")) }}

writes This string gets encrypted

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

No branches or pull requests

2 participants