2.1.0 • Published 2 years ago

@phase.dev/phase-node v2.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years 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

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.0

2 years ago

0.2.2

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago