Got an error "Decrypting: authentication failed" while using Encryption service |
In your editCategory function, you setup two instances of the encryption config.
$config = config('Encryption'); // the shared instance $configuration = new \Config\Encryption(); // the other instance Yet, you passed to the encrypter is the "other" instance. This causes the wrong starter key to be used in your decryption. You need to manipulate the shared instance. Then in both editCategory and updateCategory, you don't really need two instances of the same config file. Just use the shared config instance across your code. |
Messages In This Thread |
Got an error "Decrypting: authentication failed" while using Encryption service - by nileshsanyal - 09-25-2020, 05:22 AM
RE: Got an error "Decrypting: authentication failed" while using Encryption service - by paulbalandan - 09-25-2020, 09:19 AM
RE: Got an error "Decrypting: authentication failed" while using Encryption service - by nileshsanyal - 09-27-2020, 12:50 AM
|