Warden - how to migrate from md5(md5) old password to bcrypt

I`m writting sinatra app and i would like to setup encryption in Warden
like i did it in devise when i used Rails.

module Devise
module Encryptors
class Md5 < Base
def self.digest(password, stretches, salt, pepper)
str = [password].flatten.compact.join

Where I can setup this module ??
How to set Warden to use MD5 encryption?
Or how to migrate from MD5 to Bcrypt?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs