Vasseurth
Vasseurth

Reputation: 6504

Decryptor for bcrypt

The title is pretty self explanatory. I'm not sure if this exists, as it would greatly compromise the security of bcrypt, but i'm using Devise in a rails app and forgot my password. However I can access the server and find the info. I can see the encrypted password and need to decrypt it.

I do not want alternate solutions to the problem, i just want a decryptor so I can get the password.

Upvotes: 2

Views: 2406

Answers (1)

tadman
tadman

Reputation: 211740

Why don't you just spin up a Rails console and re-assign your password manually?

u = User.find_by_username('myname')
u.password = u.password_confirmation = 'reset_password'
u.save

Usually something along those lines will work.

Upvotes: 9

Related Questions