Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

implement DESEncrypt and DESDecrypt in Java

420165Apr 28 2004 — edited Apr 29 2004
Hello!

I'd like to reimplement the methods DESEncrypt and DESDecrypt, which are part of the dbms_obfuscation_toolkit, in Java, in order to be able to use EJBs mapped to tables containing encrypted data. The problem is that I can't find all the implementation details of these functions:
DES is the algorithm: this is OK.
Which chaining mode is used? I have tried ECB, and it doesn't work as soon as the input is more than 8-bytes long.
I also tried CBC and the other ones, but I need an IV to use them, and I don't know what IV is used by DESEncrypt and DESDecrypt.
Which padding mode is used? NoPadding? PKCS5Padding?

The only thing that works is DES/ECB/NoPadding, for inputs less than 8 bytes long. For longer inputs, I need more information.

JB.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 27 2004
Added on Apr 28 2004
2 comments
395 views