Permalink
Browse files

Set default crypto_provider to SCrypt

  • Loading branch information...
1 parent 33df259 commit aae67dcbe52f5eb1ca562eccb8b18632c3a9d18f @Hermanverschooten Hermanverschooten committed Mar 1, 2014
Showing with 3 additions and 4 deletions.
  1. +3 −4 lib/authlogic/acts_as_authentic/password.rb
@@ -144,13 +144,12 @@ def merge_validates_length_of_password_confirmation_field_options(options = {})
end
# The class you want to use to encrypt and verify your encrypted passwords. See the Authlogic::CryptoProviders module for more info
- # on the available methods and how to create your own. It is strongly recommended that you use SCrpyt or BCrypt. The default is Sah512 to
- # support backwards compatibility.
+ # on the available methods and how to create your own.
#
- # * <tt>Default:</tt> CryptoProviders::Sha512
+ # * <tt>Default:</tt> CryptoProviders::SCrypt
# * <tt>Accepts:</tt> Class
def crypto_provider(value = nil)
- rw_config(:crypto_provider, value, CryptoProviders::Sha512)
+ rw_config(:crypto_provider, value, CryptoProviders::SCrypt)
end
alias_method :crypto_provider=, :crypto_provider

0 comments on commit aae67dc

Please sign in to comment.