method
generate_next_nonce
v1_9_2_180 -
Show latest stable
- Class:
WEBrick::HTTPAuth::DigestAuth
generate_next_nonce(req)private
No documentation available.
# File lib/webrick/httpauth/digestauth.rb, line 253
def generate_next_nonce(req)
now = "%012d" % req.request_time.to_i
pk = hexdigest(now, @instance_key)[0,32]
nonce = [now + ":" + pk].pack("m*").chop # it has 60 length of chars.
nonce
end