PHP DES Encryption key
Hi,
I'm coding a encrypt/decrypt tool in .NET (C#) and i'm stuck on DES Encryption part. I have to get the same result as Yellowpipe or BlackFire online tools (which should be based on php crypt function i think) but for this i need to know the default private key used by php to encrypt DES. I searched the PHP 5.2.3 source code but cannot find anything. Can someone help me ? Thanks.
blackfire security uses exactly this line of code :P : $text = crypt($text, 'CRYPT_STD_DES' ) ; :happy: this would be UNsalted,stantard DES encryption, of which the algorithm specification was published in January 1977 ^^ //darksun
[edit] nice avatar…doe mij er maar 1 als ze koud staan :happy: [/edit]
no i actually dont :| maybe here: http://nl3.php.net/crypt you can find some more info…
Well it seems .NET doen't work like this.
I use DESCryptoServiceProvider class but i need to provide some more infos like InitVector, Key, …
well,i never use .NET and its encryption functions… these url's might help you out a little:
http://www.codeproject.com/useritems/NET_Encrypt_Decrypt.asp http://www.opennetcf.org/Forums/topic.asp?TOPIC_ID=2056 http://msdn2.microsoft.com/en-us/library/0dh224hh.aspx
peace.