0.1.3-a • Published 2 years ago

node_seedcrypto v0.1.3-a

Weekly downloads
-
License
GNU
Repository
github
Last release
2 years ago

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