laravel-database-encryption
laravel-database-encryption copied to clipboard
Decryption not working if APP_KEY is changed
Hi. I have encrypted my data with versioning true and now I have changed my APP_KEY and the decryption is not working. If I change a value then only that is shown in the result set after data retrieval.
I assume its because it was encrypted using a different key
any update on it.This is going to disaster if it won't work with the new encryption key.
It seems to me like you're missing the whole point of encryption. Key is not supposed to change, it has to be backed up securely. The idea is that someone without the key can dump the whole DB without being able to decrypt encrypted fields