https://github.com/phasehq/client-js-sdk
Encrypt data client side in JavaScript
https://github.com/phasehq/client-js-sdk
Last synced: 3 months ago
JSON representation
Encrypt data client side in JavaScript
- Host: GitHub
- URL: https://github.com/phasehq/client-js-sdk
- Owner: phasehq
- License: mit
- Created: 2023-04-22T18:56:01.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-02T13:36:01.000Z (about 3 years ago)
- Last Synced: 2025-07-28T09:06:37.942Z (11 months ago)
- Language: TypeScript
- Homepage: https://phase.dev
- Size: 205 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Javscript Client SDK for Phase
Phase SDK to encrypt data in client-side JavaScript applications
## Install
`npm i @phase.dev/phase-js` or `yarn add @phase.dev/phase-js`
## Import
```js
import Phase from "@phase.dev/phase-js";
```
## Initialize
Initialize the SDK with your `APP_ID`:
```js
const phase = new Phase(APP_ID);
```
## Usage
```js
const ciphertext = await phase.encrypt("hello world");
```
## Development
### Install dependencies
`npm install`
### Build
`npm run build`
### Run tests
`npm test`