spiceware-sdk
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

spiceware-SDK

Node SDK for spiceware encrypt/decript module

Installation

npm install spiceware-sdk

Usage

import SpicewareSDK from "spiceware-sdk";

const spiceware = new SpicewareSDK({
  baseURL: "http://yourserverwhereinstanceis",
});

const { status, data } = spiceware.encrypt({
  url: "/test",
  ip: "127.0.0.1",
  fields: { name: "plainname" },
});

const encryptedName = data.fields.name;

const { status, data } = spiceware.decrypt({
  url: "/test",
  ip: "127.0.0.1",
  fields: { name: encryptedName },
});

const decryptedName = data.fields.name; // this should be plainname

Test

npm test

Readme

Keywords

Package Sidebar

Install

npm i spiceware-sdk

Weekly Downloads

2

Version

0.1.2

License

ISC

Unpacked Size

31.8 kB

Total Files

11

Last publish

Collaborators

  • jonghunyu
  • kross_it