node_seedcrypto
v0.1.3-a
Published
Node.js SEED-ECB Crypto Module
Downloads
11
Readme
SEED-ECB Encrypt/Decrypt Module with Node.js
[Install]
npm install --save node_seedcrypto
[Node]
const crypto = require('node-seedcrypto');
crypto.setKey("pharseKey");
var text = "Here your encrypt data";
var enc = crypto.encrypt(text); // { flag: Boolean, data: String }
if (enc.flag) {
var dec = crypto.decrypt(enc.data); // { flag: Boolean, data: String }
console.log("Original Data = ", text);
console.log("Encrypt Data = ", enc.data);
console.log("Decrypt Data = ", dec.data);
}