Sha256: c561785780475b089280446bb9c966cf3535c0f11b380c5ffb3da2f61d04c0ee
Contents?: true
Size: 599 Bytes
Versions: 23
Compression:
Stored size: 599 Bytes
Contents
require "digest/sha1" module Devise module Encryptors # = ClearanceSha1 # Simulates Clearance's default encryption mechanism. # Warning: it uses Devise's pepper to port the concept of REST_AUTH_SITE_KEY # Warning: it uses Devise's stretches configuration to port the concept of REST_AUTH_DIGEST_STRETCHES class ClearanceSha1 < Base # Generates a default password digest based on salt, pepper and the # incoming password. def self.digest(password, stretches, salt, pepper) Digest::SHA1.hexdigest("--#{salt}--#{password}--") end end end end
Version data entries
23 entries across 23 versions & 5 rubygems
Version | Path |
---|---|
devise-1.5.1 | lib/devise/encryptors/clearance_sha1.rb |
devise-1.5.0 | lib/devise/encryptors/clearance_sha1.rb |
devise-1.5.0.rc1 | lib/devise/encryptors/clearance_sha1.rb |