I'm developing a service in .NET Core 1.1. It connects to a legacy database which stores data encrypted with AES Rjindael. The decryption algorithm uses System.Security.Cryptography.PasswordDeriveBytes() method to create the IV.
It looks like this function was not ported to .NET Core because it is obsolete. Unfortunately, I don't have the option of replacing the legacy data and code to use a better algorithm. Somehow, I need to get an implementation of this algorithm to make it backward compatible.
Any suggestions on how to to implement these algorithms? Thanks!
Update
Accepting Maarten Bodewes's answer to copy the mono source code, although it wasn't feasible for me to implement. The problem is that you would have to port a big chunk of mono crypto to get it working. (I found a way to avoid using PasswordDeriveBytes). Thanks Maarten!
Just take the code from Mono, it should be OK as long as you do not require more bytes from PBKDF1 as the output of the hash function.
Don't forget to read up on the Open Source licensing.
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