# asp-pw

> A password hash and validation library in Node compatible with the ASP.NET identity framework.

Latest version **1.0.2** (published 2017-02-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install asp-pw
pnpm add asp-pw
yarn add asp-pw
bun add asp-pw
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2017-02-14 |
| First published | 2017-02-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6.9.4 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Kelly J Andrews |
| Maintainers | kellyjandrews |
| Keywords | asp, password, hash, identity |

## Links

- npm: https://www.npmjs.com/package/asp-pw
- Repository: https://github.com/kellyjandrews/asp-pw
- Homepage: https://github.com/kellyjandrews/asp-pw#readme
- Issues: https://github.com/kellyjandrews/asp-pw/issues
- npm.io page: https://npm.io/package/asp-pw

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2017-02-14
- 1.0.1 — 2017-02-14
- 1.0.0 — 2017-02-09

## README

ASP Password for Node
=====================

[![Codeship Status for kellyjandrews/asp-pw](https://app.codeship.com/projects/a87a5a70-bbe8-0134-af05-325dab4154b9/status?branch=master)](https://app.codeship.com/projects/195777)
[![Jest Code Coverage](https://img.shields.io/badge/coverage-96%25-brightgreen.svg)]()
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)

> Currently only works for compatibility version 2 of the ASP.NET  identity framework.

## Example Usage

### Password Hashing

```javascript
import password from 'asp-pw';

const hashedPassword = password.hash('MySecurePassword');
console.log(hashedPassword); //  Prints Base64 encoded string
```

### Password Validation

```javascript
import password from 'asp-pw';

// Get the original hash from your data provider.
const hashedPassword = '...';
const valid= password.validate('MySecurePassword', storedHash);
console.log(valid); // Prints true or false
```

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