0.1.0 ā€¢ Published 4 months ago

b64hash v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

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.