npm i @phase.dev/phase-js
import Phase from '@phase.dev/phase-js'
In order to use the SDK, you need to initialize it with your
const phase = new Phase(APP_ID)
Now that you have initialized the SDK, you can use it to encrypt data.
encrypt API allows you to encrypt a string. It returns a
Promise that resolves in a encrypted string in the Phase Ciphertext format, so you need to
const ciphertext = await phase.encrypt('hello world')