Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.

nodejs server helps to encrypt/decryp file

License

Notifications You must be signed in to change notification settings

libkhadir/node-crypt-helper

Repository files navigation

node-crypt-helper Build

how to use this tool ?

npm run start encryt myfile mypassword
npm run start decrypt myfile mypassword

for encrypt/decrypt simple text

var crypto = require('crypto');

var mykey = crypto.createCipher('aes-128-cbc', 'mypassword');
var mystr = mykey.update('abc', 'utf8', 'hex')
mystr += mykey.final('hex');
console.log(mystr); //34feb914c099df25794bf9ccb85bea72
var crypto = require('crypto');

var mykey = crypto.createDecipher('aes-128-cbc', 'mypassword');
var mystr = mykey.update('34feb914c099df25794bf9ccb85bea72', 'hex', 'utf8')
mystr += mykey.final('utf8');
console.log(mystr); //abc

About

nodejs server helps to encrypt/decryp file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published