On 10 November 2015 at 10:57, John Blythe Reid <johnblyther...@gmail.com> wrote:
> This string arrives from a browser, encrypted using RSA:
>
> x..xx<PAN>pppppppppppppppp</PAN><KEY>kkkkkkkkkkkkkkkk</KEY>
>
> I decrypted the string using the private key and converted it from ASCII to 
> EBCDIC without any problem.
>
> The <KEY>  tag is a 3DES symmetric key, specified as sixteen hexadecimal 
> digits, which has been generated by the browser for the server (z/OS) to 
> encrypt the response. The response is a short 8 byte extract of confidential 
> details relating to the bank card identified by the PAN. I already have the 
> response converted to ASCII ready to be encrypted using the browser supplied 
> encryption key. But how to encrypt it ?

What language are you writing in? If assembler or C, Have you looked
at the Cipher Message (KM) machine instruction? For a one-off
encryption of 8 bytes with a plain-text key, that would surely be
faster and probably easier to use than calling ICSF.

Tony H.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to