11件ヒット
[1-11件を表示]
(0.283秒)
別のキーワード
ライブラリ
検索結果
-
WEBrick
:: HTTPAuth :: Htdigest (17007.0) -
Apache の htdigest 互換のクラス。
...Apache の htdigest 互換のクラス。
例
require 'webrick'
include WEBrick
htd = HTTPAuth::Htdigest.new('dot.htdigest')
htd.set_passwd('realm', 'username', 'supersecretpass')
htd.flush
htd2 = HTTPAuth::Htdigest.new('dot.htdigest')
p htd2.get_passwd('realm', 'username', false) == '65fe0......3e5b0a199462186848cc7fda42b'...