我在 config/initializers/devise.rb 中看到,有一个名为“config.stretches”的配置。
# ==> Configuration for :database_authenticatable
# For bcrypt, this is the cost for hashing the password and defaults to 10. If
# using other encryptors, it sets how many times you want the password re-encrypted.
config.stretches = 10
我不明白这是什么stretches
意思。它说这是我想要“重新加密”密码的时候了。为什么和我们的密码会被重新加密?为什么我要指定一个“次”?