node_seedcrypto

0.1.3-a • Public • Published

Node_SeedCrypto - SEED-ECB Encrypt/Decrypt Module

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

Package Sidebar

Install

npm i node_seedcrypto

Weekly Downloads

0

Version

0.1.3-a

License

GNU

Unpacked Size

143 kB

Total Files

7

Last publish

Collaborators

  • dev_kim