0 Replies Latest reply on Feb 24, 2005 12:38 AM by loowaikeong1982

    Inserting encrypted data into Oracle 9i database using CMP

    loowaikeong1982

      I encrypted the data of login password before inserting into my Oracle 9i database. The encryption is working fine but the encrypted data was not committed into database correctly. Some characters do not seems to get inserted as they were.

      USING:
      - Java platform j2sdk1.4.2_01
      - JCE 1.2.1 using Cipher pbeCipher = Cipher.getInstance("PBEWithMD5AndDES");
      - CMP 2.0
      - jboss-3.2.6
      - Oracle 9i

      Eg.
      encrypted data: [lú<2û?D
      inserted data: [lú<2??D

      encrypted data: U@ô:??)Ö
      inserted data: U@?:??)"

      encrypted data: ¼?ëF»j!½
      inserted data: ¼?0F»j!½

      Whats wrong? Thanks.