I found this little gem which gave me a solution TripleDES rather than DES but works consistently on both platforms nonetheless!
http://sanity-free.org/131/triple_de...nd_csharp.html
Hope that helps someone!...
User Profile
Collapse
-
DES encryption, (php) mcrypt and (c#)
I have a problem trying to encrypt a string in PHP and also in C# using DES (cbc) encryption. The problem I'm facing is that I'm getting different results using the different languages.
In PHP:
...Code:$td = mcrypt_module_open('des', '', 'cbc', ''); mcrypt_generic_init($td, pack("H*", '0F26EF560F26EF56'), pack("H*", '0F26EF560F26EF56')); $encryptedText = base64_encode(mcrypt_generic($td, 'My
No activity results to display
Show More
Leave a comment: