1.0.4 • Published 2 years ago

nodescriptencryption v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

NodeJS Script Encoding Protect your codes

What's new

** The default seceret key can now be changed

Usage

const nodeScriptenc = require('nodescriptencryption');

Encoding scripts

const nodeScriptenc = require('nodescriptencryption');
const code =  `
  console.log('hi');
`
console.log(nodeScriptenc.encode(code,"custom seceret key (optional)")); <-- encoded output

Decoding scripts

const nodeScriptenc = require('nodescriptencryption');
nodeScriptenc.decode("code here","custom seceret key (optional)");