codahale/bcrypt-ruby — Issue #38: BCrypt::Errors::InvalidSalt: invalid salt when moving data generated by 2.1.4 to 3.0.1
Author: leskiger
Created: 2011-12-05 17:36:53+00:00
State: open

Hello,
I ran head-first into this issue this morning when migrating user data from an app that used bcrypt 2.1.4 to an app that uses bcrypt 3.0.1. It appears the old salts are 20 characters long while the salts generated by 3.0.1 are 29 characters. I'm not sure if there are other differences in format as well. I saw in the changelog that version 3.0.0 moved to a different underlying implementation and I wonder if that's the source issue?

At any rate, I can't seem to find any documentation for migrating salts to the current version. Any assistance would be greatly appreciated.

Thanks
Les