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:

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_digest(username, password, realm, uri \\ "/", method \\ "GET")

Specs

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")
random_string(length)

Specs

random_string(Integer.t) :: String.t

Creates random string of given length Used for random nonce creation