This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Hi, I'm making a plugin and it works great. But I want a crypted field (I use Crypt::encode and Crypt::decode and I have key in config/app.php) and :
- in OC v313, it works great
- in the last OC, i have an error : "The payload is invalid." on line 45 of ...../vendor/laravel/framework/src/Illuminate/Encryption/BaseEncrypter.php Thanks
What is the type of your column set to in your migration? If it's a string, then it's probably too short to fit the fully encrypted value into it. Try using text()
for your migration instead.
More information here: https://laracasts.com/discuss/channels/general-discussion/daeling-with-decryptexceptioninvalid-data
Also, as a note if you are doing this on a model's attribute, look into using the encryptable trait instead
Last updated
1-3 of 3