Posted: Tue Jan 31, 2006 7:59 am Post subject: MQ Data Conversion Question.
Newbie
Joined: 09 Sep 2004 Posts: 3
I have a program that sends data from a Z/oS cobol application that is using Xor to encrypt the data in the message. The target machine is a Unix Solaris machine. The Sending program encodes the data with a XOR and is in Ebcdic format. The receiving process expects the data to still be in that Ebcdic format when it recieves and decodes it.
When reading the data from the UNIX queue, using Java, the data comes through as converted ASCII format. We did not use the option of MQGMO_CONVERT because we wanted to read the data in as Ebcdic format. Does Java MQ actually convert the data as a default? Is there a way we could stop it from converting the data to ASCII?
Your message is in MQSTR format. It is subject to conversion exit or channel exit and if JMS read with conversion....
You need to leave the format blank so that it is recognized as bytes.
Your encryption scheme is not based on a character substitution table so why would you be able to decrypt once the qmgr tryed to convert ?
Once encrypted you truely have a byte message.
Anyway if you do use encryption why not go all the way and use a generated random key? There are very good explanation of the encryption concepts in the java JCE and JSSE packs. http://java.sun.com
As well you might want to read "Java Security Solutions" by Rich and Johennie Helton with an excellent introduction to elliptic curve cryptography...
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum