Use alternative (and even your own!) encryptors with Devise.
Add it to your Gemfile
gem "devise-encryptable"Add the encryptable module to your model:
class User < ActiveRecord::Base
  devise :database_authenticatable, :encryptable
endAnd add the password_salt field to the database through a migration:
class DeviseCreateUsers < ActiveRecord::Migration
  def change
    add_column :users, :password_salt, :string
  end
endAnd you're ready to go!
- Fork it
 - Write your changes
 - Commit
 - Send a pull request
 
MIT License. Copyright 2020-2025 Rafael França, Carlos Antonio da Silva. Copyright 2012-2019 Plataformatec.