W3cubDocs

/Ruby on Rails 7.0

module ActiveModel::SecurePassword

Constants

MAX_PASSWORD_LENGTH_ALLOWED

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.

© 2004–2021 David Heinemeier Hansson
Licensed under the MIT License.