Specifies data encryption on disk for a new database or to configure an existing unencrypted database for encryption. For information about data encryption, see "Encrypting Databases on Disk" in the Derby Developer's Guide.
The dataEncryption attribute must be combined with the bootPassword=key attribute or the newEncryptionKey= <key> attribute. You have the option of also specifying the encryptionProvider=providerName and encryptionAlgorithm=algorithm attributes.
-- encrypt a new database jdbc:derby:encryptedDB;create=true;dataEncryption=true; bootPassword=cLo4u922sc23aPe -- configure an existing unencrypted database for encryption jdbc:derby:salesdb;dataEncryption=true;bootPassword=cLo4u922sc23aPe