I’m building an Elixir/Phoenix API and need to reproduce the hashing process that I currently have on my C# api, that is based on the class Rfc2898DeriveBytes .
This class is similar to the pbkdf2 elixir library (it performs hash basing on a random salt and on a number of rounds) but when hashing the same password the results are not compatible, even if setting same rounds number and output format (encode64, that corresponds to django).
I’m wondering if this is caused by the fact that c# library uses HMAC-SHA1 hash, while pbkdf2 uses SHA256/SHA512 .
Is there a way to obtain the same hash format in output?
Waiting for your help
Thanks and best regards!
EDIT: here’s the source files for the .net implementation of the pbkdf2, hope they can help as well