Skip to content

spleef32gmail/spleef-mod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published