# echashcash

> An easy way to generate and verify hashcash

Latest version **1.0.1** (published 2016-01-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install echashcash
pnpm add echashcash
yarn add echashcash
bun add echashcash
```

## 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.1 |
| Published | 2016-01-22 |
| First published | 2016-01-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Luphia Chang |
| Maintainers | luphia |
| Keywords | hashcash |

## Links

- npm: https://www.npmjs.com/package/echashcash
- Repository: https://github.com/Luphia/ecHashcash
- Homepage: https://github.com/Luphia/ecHashcash#readme
- Issues: https://github.com/Luphia/ecHashcash/issues
- npm.io page: https://npm.io/package/echashcash

## Alternatives

- [@gemini-wallet/core](https://npm.io/package/@gemini-wallet/core.md) — 515.6K weekly downloads
- [utility](https://npm.io/package/utility.md) — 416.6K weekly downloads
- [@primno/dpapi](https://npm.io/package/@primno/dpapi.md) — 7.2K weekly downloads
- [pi-readseek](https://npm.io/package/pi-readseek.md) — 3.7K weekly downloads
- [@emilia-protocol/verify](https://npm.io/package/@emilia-protocol/verify.md) — 1.1K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2016-01-22
- 1.0.0 — 2016-01-22

## README

# ecHashcash
An easy way to generate and verify hashcash

## Install
```shell
npm install echashcash
```
## Use
### Generate Hashcash
```node
const echashcash = require('echashcash');

/* with default level (3)  */
var content = 'some content';
echashcash(content);

/* with custom level  */
var content = 'some content';
var level = 5;
echashcash(content, level);

/* with custom token (HEX)  */
var content = 'some content';
var token = 'bb8';
echashcash(content, token);
```
### Verify Hashcash
```node
const echashcash = require('echashcash');

/* with default level (3)  */
var content = 'some content';
var hashcash = 2375
echashcash.check(content, hashcash);

/* with custom level  */
var content = 'some content';
var level = 5;
var hashcash = 383173;
echashcash.check(content, hashcash, level);

/* with custom token (HEX)  */
var content = 'some content';
var token = 'bb8';
var hashcash = 873;
echashcash.check(content, hashcash, token);
```

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