Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

validatePassword function returns false #3

Open
Juned-Ansari opened this issue Sep 22, 2018 · 0 comments
Open

validatePassword function returns false #3

Juned-Ansari opened this issue Sep 22, 2018 · 0 comments

Comments

@Juned-Ansari
Copy link

Juned-Ansari commented Sep 22, 2018

I am trying to compare c# generated password in nodejs using your library
but it returns False.

c# generated password for "123456" => "JWvppSSfnzOQ+uMd+BORpT/8aQorC8y05Bjbo/8w/9b/eiG4WLzUFRQSSiKZqo3C"

Please refer stackoverflow my question link for more details
https://stackoverflow.com/questions/52444530/generate-asp-net-webpages-membership-password-using-nodejs

var passwordHasher = require('aspnet-identity-pw');

var hashedPassword = passwordHasher.hashPassword('123456');
console.log(hashedPassword);

var isValid = passwordHasher.validatePassword('JWvppSSfnzOQ+uMd+BORpT/8aQorC8y05Bjbo/8w/9b/eiG4WLzUFRQSSiKZqo3C', hashedPassword);
console.log("Result:"+isValid);
//Return False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant