Hi all,
I'm working with a project that is using DNN v. 09.11.02 (0). As part of the project I need to be able to support the existing users by implementing in Node.js the same password hashing algorithm that is used by DNN. It is configured with a SqlMembershipProvider specifying hashed passwords, and in the machineKey tag it specifies SHA1.
I've done quite a bit of exploration, which you can see on my StackOverflow cross-post: https://stackoverflow.com...nt138924164_78793875
But essentially, when putting together the salt and the password, the hash I'm getting out is consistently different than what is stored.
I'm wondering if anyone here has any knowledge of why this may be — whether a different hashing method is used in this version of DNN, or whether something happens to the password before it is hashed?
Any and all suggestions & help would be greatly appreciated.
Kind regards
Adam
Not really sure about it, but here seems to be the login method...
Happy DNNing! Michael
Adam,
I never inspected these methods, but I would try to find the called function and analyze it from the source code. This would give you more information about it. But I am pretty sure it's quite straightforeward. Hopefully someone who has a deeper knowledge than me about this will answer soon...
GitHub is down at the moment, but you may want to compare how you're doing your hashing to how DNN does it. When GitHub comes back online, check out the <code>EncryptAES</code> method in the <code>DotNetNuke.Security.FIPSCompliant</code> class. You may find yourself hashing it a bit differently.
The other thing I'd triple-check and trace is whether you're using the exact same values as DNN.
These Forums are for the discussion of the open source CMS DNN platform and ecosystem.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.