I tried to decrypt en encrypted string in JAVA with to code below. How can I get the same result with PHP version? I tried to write in PHP and It outputs with wrong result. Answer The build3DesKey() function expands a too short 3DES key to 24 bytes by padding the end with 0x00 values, for too long keys the
Tag: 3des
How do I use 3DES encryption/decryption in Java?
Every method I write to encode a string in Java using 3DES can’t be decrypted back to the original string. Does anyone have a simple code snippet that can just encode and then decode the string back to the original string? I know I’m making a very silly mistake somewhere in this code. Here’s what I’ve been working with so