ri > WEBrick::HTTPAuth::Htdigest

WEBrick::HTTPAuth::Htdigest < Object

📦 Includes

🚀 Quick Reference

Use CaseCommandDescription
Create new password fileHtdigest.new('path')Open or create a digest password file
Set password for userhtdigest.set_passwd('realm', 'user', 'pass')Store a password (hashed) for a realm
Delete passwordhtdigest.delete_passwd('realm', 'user')Remove a user's password from file
Flush changes to diskhtdigest.flushWrite all modifications to the password file
Get password (hash)htdigest.get_passwd('realm', 'user', reload: false)Retrieve the stored hash for a user
Reload from filehtdigest.reloadRe-read the password file from disk

📝 Description

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

🔧 Class methods

🔧 Instance methods

WEBrick::HTTPAuth::Htdigest
WEBrick::HTTPAuth::Htdigest < Object 📦 Includes 🚀 Quick Reference 📝 Description 🔧 Class methods 🔧 Instance methods

Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-31 09:43 @216.73.217.152
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format