# b64hash

> A fast and efficient (3.4kB) Base64 hashing library, optimized for performance and similar in operation to xxhash.

Latest version **0.1.0** (published 2023-12-25) · MIT license · 0 weekly downloads

## Install

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

## 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.0 |
| Published | 2023-12-25 |
| First published | 2023-12-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.8.0 |
| Dependencies | 0 |
| Unpacked size | 17.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Affolter Matias |
| Maintainers | asaitama |
| Keywords | base64, hash, hashing, algorithm, xxhash, optimization, efficiency, performance, fast, security, crypto, encoding, decoding, data, integrity |

## Links

- npm: https://www.npmjs.com/package/b64hash
- Repository: https://github.com/pixa-pics/b64hash
- Homepage: https://github.com/pixa-pics/b64hash#readme
- Issues: https://github.com/pixa-pics/b64hash/issues
- npm.io page: https://npm.io/package/b64hash

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads
- [datasets-fi-postalcodes](https://npm.io/package/datasets-fi-postalcodes.md) — 1.1K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2023-12-25

## README

# b64hash 🚀

> Great to creat hash of key in JSON.

## Description
`b64hash` is a lightning-fast, efficient hashing library optimized for Base64 strings, inspired by the performance of xxHash. Ideal for applications requiring quick and reliable hash computations.

## Version
0.1.0

## Installation
Install `b64hash` easily via npm:

```shell
npm install b64hash
```

## Usage
Using `b64hash` is straightforward:

```javascript
const B64Hash = require('b64hash');
// Create an instance of Base64Hash
let hasher = new B64Hash(2); // Output hash length (min: 1, max: 5)
// Generate a hash from a Base64 string
let myHash = hasher.hash('Matias');
console.log(myHash); // Outputs the hash "NK"
let myHash2 = hasher.hash('Buffer');
console.log(myHash2); // Outputs the hash "A0"
```

## Features

🏎️ High performance hashing optimized for Base64 strings.
🔍 Accurate and consistent results, ideal for various applications.
🌐 Lightweight and easy to integrate into any JavaScript project.

## Build
Use the provided script for building:

```shell
npm run build
```

## Author
Affolter Matias

## Keywords

Fast
Base64
Efficient
Hashing
Performance
JavaScript

## Contributing
Contributions are welcome! Please submit your pull requests to our repository.

## License
This project is licensed under the MIT License.

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