Hi,
I am very new to encryption and have a very little knowledge about Triple Des. I appreciate if you guys can help me. I hope i am not posting a question already repeated multiple time, in that case i apologise.
I am working on a project where we have to encrypt a pin using Triple Des with 3 different keys(48 hexadecimal digits) and have to then add the encrypted pin to an xml and send as a
soap msg. I believe the three keys (k1, k2, k3) will be used for encrypt(k1)->decrypt(k2)->encrypt(k3). I have also been given a 16 hexadecimal digits as "Check Digits", not sure where it is supposed to be used.
Most of the examples i have seen have an encrypt and decrypt method and use CipherOutputStream to write the pin as byte into a file. But, as mentioned earlier i need to convert the final encryted pin to a
string to add it to the xml. Is it safe to do that?
Could you please help me to understand how to do the 3des encryption with multiple keys and then convert the encrypted pin to string and add to the xml. I have gone thru the
java ranch forum, but was able to understand the triple des concepts but still not sure how to implement it in my case
Thanks in advance for your help. I would appreciate if could help me provide some code samples or links.
Regards,
Sachin