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
Exception when trying to use 64 digit key #1
Comments
When I use a 32 bit Key, it encrypts, but I am unable to make the encryptor instance in laravel:
Now, take that key, and the encryption and use in
|
Hi. Sorry for the delay answering , right now I'm not able to dig into it but I'll look this issue more carefully when I finish to settle down. |
I just published an update. Now
const key = Encryptor.generateRandomKey();
const key = Encryptor.generateRandomKey(128); Thanks for the advise and let me know if you have any problem. |
FIrst off, thank you for making this repo!
Using this code:
Exception is thrown:
Yet, if I make a key of 32 and don't pass a key_length into the Encryptor constructor, it works. It's like the cipher algorithm isn't being set properly when the key is 64 digits.
The text was updated successfully, but these errors were encountered: