http_digex v0.0.1 HTTPDigex
HTTPDigex is a module to create basic digest http auth header. Current, it only supports the “MD5” algorithm but future versions will also support “MD5-SESS” algorithm.
Refs:
- https://tools.ietf.org/html/rfc2617#section-3
- https://en.wikipedia.org/wiki/Digest_access_authentication
You can use this package to create the digest authentication header but you will have to put in the request header using one of the libraries.
The header key you need to use is authorization
.
Example
import HTTPDigex
digest_auth = create_digest("user", "password", "/index.html", "Administration")
# put the digest_auth on your request now
Summary
Functions
Create the digest authentication header value based on username, password, uri, realm and http method
Creates random string of given length Used for random nonce creation
Functions
Create the digest authentication header value based on username, password, uri, realm and http method
Example
HTTPDigex.create_digest("user", "password", "Admin panel", "/admin.html", "POST")