implement DESEncrypt and DESDecrypt in Java
420165Apr 28 2004 — edited Apr 29 2004Hello!
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.