Method: BCrypt::Password#==

Defined in:
lib/bcrypt/password.rb

#==(secret) ⇒ Object Also known as: is_password?

Compares a potential secret against the hash. Returns true if the secret is the original secret, false otherwise.


65
66
67
# File 'lib/bcrypt/password.rb', line 65

def ==(secret)
  super(BCrypt::Engine.hash_secret(secret, @salt))
end