Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Verify password not working

See original GitHub issue

I have tried it before in previous versions, but it didn’t work out. I’m trying it again and it doesn’t work out. The error is seen below.

SaltParseException: Invalid salt version
BCrypt.Net.BCrypt.HashPassword(string inputKey, string salt, bool enhancedEntropy, HashType hashType) in BCrypt.cs, line 633

In the documentation, it says to use this but it doesn’t work out. BCrypt.Verify("my password", passwordHash);

As a workaround, I had to separately store the hash and then compare it instead. Hope to be able to fix the Bcrypt.Verify bug as it makes the code much cleaner.

var userSuppliedPasswordhash = BCryptPasswordHash.HashPassword(<user password>, <salt>);

if (storedPassword.Equals(userSuppliedPasswordhash)){

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

ChrisMcKeecommented, Apr 7, 2019

The only way that exception is raised is if the first char isn’t $ and the second isn’t 2 as that’s the mark of bcrypt

stale[bot]commented, Apr 12, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Setup is getting stuck at this “verify password” step. All of ...
New router and internet setup and it stops at the same picture. It asks to join the roomba iRobot Wi-Fi and then says...
Read more >
"Sorry, your password couldn't be verified" when using ...
I can't login to my chromebook as every time I enter my password it says, "Sorry, your password couldn't be verified.
Read more >
“Password incorrect” error
Sometimes you'll see a "Password incorrect" error when you sign in to Google with a third-party app, like Apple's Mail app, Mozilla Thunderbird,...
Read more >
Roomba Stuck at 'Verify password' -
An iRobot app that gets stuck at Verify password when setting up the Roomba. Bear in mind, the only people who know all...
Read more >
unable to verify account name or password
Double-check your macOS Keychain to be sure that it does not contain an outdated set of login credentials for this mail account.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found