Module: ActiveModel::SecurePassword
| Relationships & Source Files | |
| Namespace Children | |
|
Modules:
| |
| Extension / Inclusion / Inheritance Descendants | |
|
Included In:
| |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
::ActiveSupport::Concern
|
|
| Defined in: | activemodel/lib/active_model/secure_password.rb |
Constant Summary
-
MAX_PASSWORD_LENGTH_ALLOWED =
# File 'activemodel/lib/active_model/secure_password.rb', line 10
BCrypt hash function can handle maximum 72 bytes, and if we pass password of length more than 72 bytes it ignores extra characters. Hence need to put a restriction on password length.
72