# digest-auth-utils

> Digest authentication utilities

Latest version **0.1.1** (published 2016-05-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install digest-auth-utils
pnpm add digest-auth-utils
yarn add digest-auth-utils
bun add digest-auth-utils
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2016-05-10 |
| First published | 2016-04-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Atanas Palavrov |
| Maintainers | palavrov |
| Keywords | http, digest, authentication |

## Links

- npm: https://www.npmjs.com/package/digest-auth-utils
- Repository: https://github.com/codigi/digest-auth-utils
- Homepage: https://github.com/codigi/digest-auth-utils#readme
- Issues: https://github.com/codigi/digest-auth-utils/issues
- npm.io page: https://npm.io/package/digest-auth-utils

## Dependencies (1)

- [crypto-js](https://npm.io/package/crypto-js.md) ^3.1.6

## Alternatives

- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads
- [@nocobase/plugin-verification](https://npm.io/package/@nocobase/plugin-verification.md) — 2.0K weekly downloads
- [escher-request](https://npm.io/package/escher-request.md) — 545 weekly downloads

## Recent versions

- 0.1.1 (latest) — 2016-05-10
- 0.1.0 — 2016-05-10
- 0.0.1 — 2016-04-13

## README

# digest-auth-utils
Common digest authentication utilities.

## Install

```bash
npm install --save digest-auth-utils
```

## Usage
```JS
var digestUtils = require('digest-auth-utils');

var serverReply = 'WWW-Authenticate: Digest \
 realm="testrealm@host.com",\
 qop="auth,auth-int",\
 nonce="dcd98b7102dd2f0e8b11d0f600bfb0c093",\
 opaque="5ccc069c403ebaf9f0171e9517f40e41"';
console.log("Chalenge: "+serverReply);

var challenge = digestUtils.parseServerChallenge(serverReply);
var authHeader = digestUtils.generateRequestHeader(1, challenge, "Mufasa", "Circle Of Life", "GET", "/dir/index.html");
console.log("Authorization: "+authHeader);
```

## TODO:
- Server support.

---
_Source: https://npm.io/package/digest-auth-utils · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
