0.1.3-a • Published 3 years ago
node_seedcrypto v0.1.3-a
SEED-ECB Encrypt/Decrypt Module with Node.js
npm install --save node_seedcrypto
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);
}