views:

18

answers:

0

I have a Java application which uses an embedded Apache Derby DB for storing data. I want to give the user the option to enable/disable encryption of the database.

I found ways to encrypt an unencrypted DB, change encryption keys/algorithms, but the one thing that I couldn't find is how to revert from an encrypted DB back to an unencrypted DB. As soon as you shutdown the DB it will encrypt the data again.

So I want to connect to an encrypted DB, then disable encryption, then shutdown & application exit. The result should be an unencrypted DB.

Is this possible?