Sha256: a84bd1296d35b101e499041d4b7830e793dcd3f97ec499dee77c26dfd9f5349e
Contents?: true
Size: 652 Bytes
Versions: 10
Compression:
Stored size: 652 Bytes
Contents
require "digest/sha1" module Devise module Encryptable 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 end
Version data entries
10 entries across 10 versions & 2 rubygems