I need to encrypt user input in my java-based web application (using jasypt), which is stored in a MySQL database, and I want to be able to change the encryption key / passphrase at a regular interval (for example, 90 days). The application works on a server on the network.
Existing already encrypted data must be re-encrypted with a new key, but for this he will, of course, need the old key.
- What are the usual methods to rotate keys?
- What are the common ways to make encryption keys available to the system (for example, system properties transferred through the command line, encrypted property files, downloading from another server via https)
I expect that there is no single answer to this, but I would like to get some tips, pointers and keywords to explore them in the right direction.
source
share