b64hash

0.1.0 • Public • Published

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:

npm install b64hash

Usage

Using b64hash is straightforward:

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:

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.

Package Sidebar

Install

npm i b64hash

Weekly Downloads

6

Version

0.1.0

License

MIT

Unpacked Size

17.9 kB

Total Files

10

Last publish

Collaborators

  • asaitama