Command to roll key
Jamesking56 opened this issue · 1 comments
Jamesking56 commented
Would be nice if this package could also provide an artisan command to help with rolling over a key if it has been accidentally leaked.
- Put app in maintenance mode
- Generate a new key (don't store in
APP_KEY
yet) - Go through every model's encrypted values and decrypt / re-encrypt using new key.
- Set
APP_KEY
to new key.
betterapp commented
good point. I will think about to develop it