lib/sorcery/crypto_providers/bcrypt.rb in sorcery-0.3.1 vs lib/sorcery/crypto_providers/bcrypt.rb in sorcery-0.4.0
- old
+ new
@@ -40,10 +40,10 @@
class BCrypt
class << self
# This is the :cost option for the BCrpyt library. The higher the cost the more secure it is and the longer is take the generate a hash. By default this is 10.
# Set this to whatever you want, play around with it to get that perfect balance between security and performance.
def cost
- @cost ||= 1
+ @cost ||= 10
end
attr_writer :cost
alias :stretches= :cost=
# Creates a BCrypt hash for the password passed.
\ No newline at end of file