lib/generators/passwd/install/templates/passwd.rb in passwd-0.3.0 vs lib/generators/passwd/install/templates/passwd.rb in passwd-0.4.0
- old
+ new
@@ -1,13 +1,10 @@
Passwd.current.config.tap do |config|
- # Hashing algorithm
- # Supported algorithm is :md5, :rmd160, :sha1, :sha256, :sha384 and :sha512
- # config.algorithm = :sha512
-
# Number of hashed by stretching
- # Not stretching if specified nil or 0.
- # config.stretching = 100
+ # Minimum is 4, maximum is 31, default is 12.
+ # See also BCrypt::Engine
+ # config.stretching = 12
# Random generate password length
# config.length = 10
# Array of characters used for random password generation
@@ -20,8 +17,5 @@
# Authentication Model Class
# Rails.application.config.passwd.auth_class = :User
# Redirect path when not signin
# Rails.application.config.passwd.signin_path = :signin_path
-
-# Salt generation logic
-# Rails.application.config.passwd.random_salt = proc { SecureRandom.uuid }