2.1.0 • Published 11 months ago

@phase.dev/phase-node v2.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Node.js SDK for Phase

SDK to integrate Phase in server-side applications running Node.js

Install

npm i @phase.dev/phase-node or yarn add @phase.dev/phase-node

Import

const Phase = require("@phase.dev/phase-node");

Initialize

Initialize the SDK with your APP_ID and APP_SECRET:

const phase = new Phase(APP_ID, APP_SECRET);

Usage

Encrypt

const ciphertext = await phase.encrypt("hello world");

Decrypt

const plaintext = await phase.decrypt(ciphertext);

Development

Install dependencies

npm install

Build

npm run build

Run tests

npm test

2.1.0

11 months ago

2.0.1

1 year ago

2.0.0

1 year ago

1.0.0

1 year ago

0.2.2

1 year ago

0.2.0

1 year ago

0.1.0

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago