Phase SDK to encrypt data in client-side JavaScript applications
npm i @phase.dev/phase-js
or yarn add @phase.dev/phase-js
import Phase from "@phase.dev/phase-js";
Initialize the SDK with your APP_ID
:
const phase = new Phase(APP_ID);
const ciphertext = await phase.encrypt("hello world");
npm install
npm run build
npm test