Method: ActionController::HttpAuthentication::Digest#ha1

Defined in:
actionpack/lib/action_controller/metal/http_authentication.rb

#ha1(credentials, password) ⇒ Object



254
255
256
# File 'actionpack/lib/action_controller/metal/http_authentication.rb', line 254

def ha1(credentials, password)
  OpenSSL::Digest::MD5.hexdigest([credentials[:username], credentials[:realm], password].join(":"))
end