I am using the PBE Cipher (PBEWithMD5AndDES). I have set the salt and the
iterator and all. Then I passed a String to my encryption method and the
password is encrypted fine. Then I can also take the returned array of
bytes (from the encryption) and decrypted with no problems. The problem
arises when I convert the encrypted resulting array of bytes into a String
( to store it in a database). Later, when I passed this String to the
encryption routine as an array of bytes (using getBytes() method), I
get a padding exception.
Something is happenning during the conversion from array of bytes to
String (Stored in DB) and back to array of bytes. I am trying to stored
this in a ORACLE database (RAW datatype) table column. I am using CORBA
interfaces to comunicate between the client side and the back end which is
in C++(embembeded SQL).Please help!! Give me some code examples on how to
do this convertions the right way.