Hello All,
I am trying to implement the following
1.client(using cryptopp 521/DES::EDE3/Win2K/)
2.server(mcrypt/Apache2/linux/MCRYPT_3DES
without much success, I know I know where's the code I will send it in a followup later if needed, BUT I don't think its needed here's why.
I have set up a test method on my client that takes plaintext "BLAHBLAHBLAH" and encrypts it, and then passes it to its own decrypt method which decrypts it without any problems, it works beautifully.
likewise I have done the same test on my server using mcrypt and it works fine as well.
BUT when I try to pass data from the client encrypt to the server decrypt and vice versa both sides turn out garbage.
I have looked into the following.
- I saw somewhere online that mcrypt pads using zeros and not pkcs5 so the client is set to use "StreamFilterTransformation::ZEROS_PADDING"
-Both are set to ECB and I have tried both with and without an IV (making sure that the iv value used was 8 bytes wide).
-Key length is 24 BYTES of an MD5 hashed common word, used for both.
Is there a compatability issue with Cryptopp and mcrypt?? Have I forgotten something??
Any help would be greatly appreciated.
AJ Mayorga
