
Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk
>> Not sure if this is possible, but has anyone seen (or know how to do)
>> emulation of the PHP "crypt" function from within c#?
>
> Are you just trying to do cryptography in general, or does it have to
> match the exact format/functionality of PHP's "crypt" function?
Ideally I want to be able to "crypt" a string in a c# app, and get the same
hash that a bit of php code on a webserver would generate... I'll have a
play with the built in .net stuff and see what comes out I guess...
Thanks
Jon Skeet [C# MVP] - 05 Mar 2008 22:08 GMT
> >> Not sure if this is possible, but has anyone seen (or know how to do)
> >> emulation of the PHP "crypt" function from within c#?
[quoted text clipped - 5 lines]
> hash that a bit of php code on a webserver would generate... I'll have a
> play with the built in .net stuff and see what comes out I guess...
Unfortunately it looks like that could vary significantly:
http://articles.techrepublic.com.com/5100-22-1058691.html
http://www.w3schools.com/php/func_string_crypt.asp
If you can work out exactly which one you want to support, the rest is
probably easy :)

Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk