Overlooking the weak security provided by DES, I'm looking for a C# implementation of the Unix crypt() function that uses classes/methods in the .net framework's Cryptography namespace.
I found this: http://www.codeproject.com/Articles/9183/A-C-implementation-of-Unix-crypt
But I'm wondering if there's a shorter solution using DESCryptoServiceProvider, etc.
An implementation of Unix crypt you mentioned is rather slow.
Here is a standalone lightweight and pretty efficient implementation of crypt(3) written in C# that leverages Span<T> type to hold and transform data.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With