1.0.0 • Published 2 months ago

spleef-mod v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 months ago

Spleef-mod

A Node.js module providing various cryptographic utilities.

Installation

You can install this module via npm: npm install spleef-mod

Usage

const cryptoAssist = require('crypto-assist');

// Generate a random password
const password = cryptoAssist.generateRandomPassword(10);
console.log(password);

// Hash a string
const hashedString = cryptoAssist.hashString('hello world');
console.log(hashedString);

// Encrypt data
const encryptedData = cryptoAssist.encryptData('Sensitive data', 'encryptionKey');
console.log(encryptedData);

// Decrypt data
const decryptedData = cryptoAssist.decryptData(encryptedData, 'encryptionKey');
console.log(decryptedData);