# secure-hasher

> A secure hasher generator for Node.js

Latest version **1.0.1** (published 2024-06-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install secure-hasher
pnpm add secure-hasher
yarn add secure-hasher
bun add secure-hasher
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2024-06-12 |
| First published | 2024-06-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Tiago de Souza Santoa |
| Maintainers | etc-tiago |
| Keywords | hash, hasher, security, cryptography, password, salt, bcrypt, sha256, sha512, md5, sha1, sha3 |

## Links

- npm: https://www.npmjs.com/package/secure-hasher
- Repository: https://github.com/etc-tiago/secure-hasher
- Issues: https://github.com/etc-tiago/secure-hasher/issues
- npm.io page: https://npm.io/package/secure-hasher

## 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) — 2024-06-12

## README

# secure-hasher

A TypeScript library for generating unique hashes up to 16 characters long, using Node.js 20 or higher. Includes hyphen separators for readability.

## Installation

You can install this library using npm:

```sh
npm install secure-hasher

## Usage
Here is an example of how to use the library to generate a hash:

```typescript
import { generateHash } from 'unique-hash-gen-ts';

const hash = generateHash(16);
console.log(hash); // Example output: "1a2b-3c4d-5e6f-7g8h"
```

## Parameters

length (optional): The length of the generated hash. The default value is 16.
Tests

The library includes automated tests using Node.js 20's native node:test module.

## Gold Sponsorship

[Clinica Work - Plataforma de agendamento para médicos](https://clinica.work).

`

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