1.0.5 • Published 11 months ago

hashingencryption-js v1.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

hashing-encryption-js

Key Features

  • String Hashing: Generates unique numerical hashes for input strings.
  • Performance Optimization: Designed for efficient hashing operations, suitable for high-volume applications.
  • Easy Integration: Simple API that can be quickly integrated into existing projects.
  • Customizable: (If applicable) Offers options to customize the hashing algorithm or output format.

Installation

To install the package, run the following command in your project directory:

npm i hashingencryption-js

Usage

Here's a basic example of how to use the Hashing class:

const Hashing = require('hashing-encryption-js');

// Create a new instance with a password
let password = "123456";
let hash = new Hashing(password);

// Generate the hash
let hashedPassword = hash.getHash();

console.log(`Original password: ${password}`);
console.log(`Hashed password: ${hashedPassword}`);

API Reference

Hashing Class

Constructor

new Hashing(inputString)
  • inputString (string): The input string to be hashed.

Methods

  • getHash(): Returns the numerical hash of the input string.

Best Practices

  1. Secure Storage: Always store hashed versions of sensitive information, never plain text.
  2. Salt Usage: Consider using a salt with your hashes for additional security.
  3. Consistency: Use the same hashing method consistently across your application.

Contributing

We welcome contributions to improve hashing-encryption-js! Please follow these steps:

Support

If you encounter any issues or have questions, please file an issue on the GitHub issue tracker.


Remember to replace sensitive information, customize usage examples, and verify all details before publishing this README.

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago