# bcrypt-hashpass

> hash pass with bcrypt

Latest version **0.1.1** (published 2019-02-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install bcrypt-hashpass
pnpm add bcrypt-hashpass
yarn add bcrypt-hashpass
bun add bcrypt-hashpass
```

## Health

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

Positive: has types; no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2019-02-14 |
| First published | 2019-02-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Luc |
| Maintainers | lucduong |

## Links

- npm: https://www.npmjs.com/package/bcrypt-hashpass
- Repository: git@github.com:lucduong/bcrypt-hashpass
- npm.io page: https://npm.io/package/bcrypt-hashpass

## Dependencies (1)

- [bcrypt](https://npm.io/package/bcrypt.md) ^3.0.4

## Recent versions

- 0.1.1 (latest) — 2019-02-14
- 0.1.0 — 2019-02-14

## README

# bcrypt-hashpass
Simple password hashing and comparing functions.

## Usage

### ENV
```
process.env.SALT_ROUNDS: number # 1, 2, 3, any number
rocess.env.PASS_SALT: string # generated salt. This can be ignore for automaticaly generated.
```

### hash pass
```js
import { hashPass, comparePassword } from 'bcrypt-hashpass';
const hashed = hashPass('mysecurepass');
```

### compare password
```js
import { hashPass, comparePassword } from 'bcrypt-hashpass';
const correct = comparePassword('mysecurepass', 'HashedPasswordXXX');
```

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