PHP and C# communication with Encrypt/Decrypt

Posted by SilentWarrior on Stack Overflow See other posts from Stack Overflow or by SilentWarrior
Published on 2009-10-06T00:05:14Z Indexed on 2010/06/05 14:12 UTC
Read the original article Hit count: 146

Filed under:
|
|
|

Hello, I have been searching and cant find a consistent solution to my problem :

I want to encrypt something in C# and decrypt it in PHP but also be able to encrypt in PHP and decrypt in C#, using the same key on both ends.

All the solutions I found dont seem to work both ways, most of them only work on one language and then fail on the other, either by decrypting wrong or by blowing up the offsets.

I would like to use TripleDES but it isnt a requirement, just want something relatively strong for plain text communication (will either use JSON or just plain key-value pairs for complex stuff).

Thanks in advance

PS: http://pastie.org/643106 this is what I have been testing with.

© Stack Overflow or respective owner

Related posts about c#

Related posts about php