instance method hash_password

Ruby on Rails edge

Since edge

Signature

hash_password(unencrypted_password)

Hashes the unencrypted password using BCrypt.

Parameters

unencrypted_password req
Source
# File activemodel/lib/active_model/secure_password/bcrypt_password.rb, line 22
      def hash_password(unencrypted_password)
        ::BCrypt::Password.create(unencrypted_password, cost: cost)
      end

Defined in activemodel/lib/active_model/secure_password/bcrypt_password.rb line 22 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveModel::SecurePassword::BCryptPassword

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close