dataEncryption=true

Function

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.

Combining with other attributes

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.

Examples

 -- 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 
Related reference
bootPassword=key
create=true
createFrom=Path
databaseName=nameofDatabase
encryptionKey=<key>
encryptionProvider=providerName
encryptionAlgorithm=algorithm
logDevice=logDirectoryPath
newEncryptionKey= <key>
newBootPassword = <new password>
password=userPassword
restoreFrom=Path
rollForwardRecoveryFrom=Path
shutdown=true
territory=ll_CC
user=userName
(no attributes)