class

WEBrick::HTTPAuth::Htdigest

v2_2_9 - Show latest stable - Superclass: Object

Htdigest accesses apache-compatible digest password files. Passwords are matched to a realm where they are valid. For security, the path for a digest password database should be stored outside of the paths available to the HTTP server.

Htdigest is intended for use with WEBrick::HTTPAuth::DigestAuth and stores passwords using cryptographic hashes.

htpasswd = WEBrick::HTTPAuth::Htdigest.new 'my_password_file'
htpasswd.set_passwd 'my realm', 'username', 'password'
htpasswd.flush

Included modules

  • WEBrick::HTTPAuth::UserDB

Files

  • lib/webrick/httpauth/htdigest.rb