Java encryption and decryption - Recyclable keys -


here problem statement:
1) save data database in encrypted way whoever accesses database/gets hold of data, not usable.
2) 'key' used encrypt data has recycled every year.
3) if recycle key, how can decrypt old data using new key after recycle? (this primary challenge).
4) development environment java

1) jre has packages dedicated servers , databases. have @ this: https://docs.oracle.com/javase/tutorial/jdbc/basics/connecting.html , http://docs.oracle.com/javase/7/docs/technotes/guides/jdbc/ starting points. however, before ship out data database, you'll want encrypt first. far encryption/decryption goes have ton of options including not limited aes. https://docs.oracle.com/javase/8/docs/technotes/guides/security/crypto/cryptospec.html starting point.

2) because key changing, you'll have pull in of data database, decrypt using old key. cannot make new key , decrypt way, won't work. decrypt > make new key > encrypt using new key > upload. encryption in sense typically works 1 key , 1 key decrypt it.

3) stated in 2), cannot decrypt using 'new' key. have decrypt data first make new key, encrypt again, followed uploading it.


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -