exercism / exercism/website

BCrypt::Errors::InvalidHash: invalid hash (BCrypt::Errors::InvalidHash)

Open
#8,779 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
548
Forks
168
Avg merge
1d 3h
Merged PRs (30d)
28

Description

## Error

```
invalid hash (BCrypt::Errors::InvalidHash)
```

## Stack trace

```
bcrypt/password.rb:60 in initialize
devise/encryptor.rb:16 in String.new
devise/encryptor.rb:16 in Devise::Encryptor.compare
devise/models/database_authenticatable.rb:72 in valid_password?
app/controllers/api/settings_controller.rb:10 in sudo_update
action_controller/metal/basic_implicit_render.rb:6 in send_action
abstract_controller/base.rb:224 in process_action
action_controller/metal/rendering.rb:165 in process_action
abstract_controller/callbacks.rb:259 in block in AbstractController::Callbacks#process_action
active_support/callbacks.rb:121 in block in ActiveSupport::Callbacks#run_callbacks
```

## Tracking Details
- **Project**: exercism-rails
- **Sentry**: [BCrypt::Errors::InvalidHash: invalid hash (BCrypt::Errors::InvalidHash)](https://thalamus-ai.sentry.io/issues/95292006/)
- **Culprit**: API::SettingsController#sudo_update
- **First seen:** Feb 12, 2026

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.