Filippo La Torre wrote:
someone can tell me what to read or how to set up a 2-key TDES with two keys of 16 bytes with java?
Filippo La Torre wrote:If I have two keys of 16 bytes, for example:
1) a123b456c789d000
2) zxcasdqwe123vbn0
I didn't understand how these become of 24 bytes
Thanks
Filippo La Torre wrote:Yes it's a hexadecimal sorry for the second key error.
I have now understand how create the 24 byte key.
Thanks!
But i don't understand how to use the key K with java Triple DES. I have read http://docs.oracle.com/javase/1.4.2/docs/guide/security/jce/JCERefGuide.html, but i don't understand.
Filippo La Torre wrote:
I have a string in hexadecimal format, that is "crypted" and i want to decrypt to plain text form that is "plainText" and it's also hexadecimal. I have an error javax.crypto.BadPaddingException: Given final block not properly padded.
Filippo La Torre wrote:I have finally solved.
I post the class to help others people.
Don't get me started about those stupid light bulbs. |