db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kristian Waagan (JIRA)" <derby-...@db.apache.org>
Subject [jira] Updated: (DERBY-1740) Change error message to indicate encryptionkey length to be atleast 16 characters instead of 8 characters
Date Thu, 24 Aug 2006 20:17:00 GMT
     [ http://issues.apache.org/jira/browse/DERBY-1740?page=all ]

Kristian Waagan updated DERBY-1740:

    Attachment: derby-1740-1a.diff

The patch 'derby-1740-1a.diff' is a *draft* patch. I would like some feedback on it.
Is it a viable solution to the problem?
The error message contains two integers describing the length of the external encryption key.
But what unit should be used? The external encryption key is a hexadecimal string generated
by a utility method in Derby, where a byte is split into a high and a low nibble.
A password of 8 characters, would result in an encryption key of length 16 [units] (if converted/processed
by Derby). Is it okay to use characters as the unit?

I have only tested the patch with the repro, it is not ready for commit.

> Change error message to indicate encryptionkey length to be atleast 16 characters instead
of 8 characters
> ---------------------------------------------------------------------------------------------------------
>                 Key: DERBY-1740
>                 URL: http://issues.apache.org/jira/browse/DERBY-1740
>             Project: Derby
>          Issue Type: Bug
>    Affects Versions:
>         Environment: Any
>            Reporter: Rajesh Kartha
>            Priority: Minor
>             Fix For:
>         Attachments: derby-1740-1a.diff
> While attempting to create a encrypted database with even key length of 14 characters,
it fails with the error message indicating the key length should be atleast 8 characters.
> --
> -- Attempt to encrypt using key of lenght 14
> --
> ij> connect 'jdbc:derby:adb;create=true;dataEncryption=true;encryptionAlgorithm=DES/CBC/NoPadding;encryptionKey=11223344556677';
> ERROR XJ041: Failed to create database 'adb', see the next exception for details.
> ERROR XBM01: Startup failed due to an exception. See next exception for details.
> ERROR XBCX2: Initializing cipher with a boot password that is too short. The password
must be at least 8 characters long.
> --
> --Requires 16 characters for the encryptionKey
> --
> ij> connect 'jdbc:derby:adb;create=true;dataEncryption=true;encryptionAlgorithm=DES/CBC/NoPadding;encryptionKey=1122334455667788';
> ij>

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message