apache > db
Apache DB Project
 
Font size:      

encryptionAlgorithm=algorithm

encryptionAlgorithm=algorithm

Function

Specifies the algorithm for data encryption.

Specify the algorithm per the Java conventions:

algorithmName/feedbackMode/padding

The only padding type allowed with Derby is NoPadding.

If no encryption algorithm is specified, the default value is DES/CBC/NoPadding.

(For information about data encryption, see "Encrypting Databases on Disk" in Chapter 7 of the Derby Developer's Guide).

Combining with Other Attributes

Must be combined with create=true, bootPassword=key, dataEncryption=true, and encryptionProvider=providerName.

Example

jdbc:derby:encryptedDB;create=true;dataEncryption=true;
    encryptionProvider=com.sun.crypto.provider.SunJCE;
    encryptionAlgorithm=DESede/CBC/NoPadding;
    bootPassword=cLo4u922sc23aPe

Note:
If the specified provider does not support the specified algorithm, Derby throws an exception.

Previous Page
Next Page
Table of Contents
Index