For the full documentation please visit cypher.skylerx.ir/docs
To get started please visist cypher.skylerx.ir
Cypher SDK to encrypt data in client-side JavaScript applications
npm i @skylerx/cypher
or yarn add @skylerx/cypher
import Cypher from "@skylerx/cypher";
Initialize the SDK with your APP_ID
and APP_SECRET
:
const cypher = new Cypher({
appId: APP_ID,
appSecret: APP_SECRET,
JWT_SECRET: JWT_SECRET,
});
Note that the JWT secret must be the same one that is given to you in the developer console (web platform) because that's what is used to encode, decode, verify, and add to audit log
const ciphertext = await cypher.encrypt("hello world");
npm install
npm run build
npm test
If you'd like to contribute to this application, I appreciate your interest! Here's how you can get involved:
- Report any issues or bugs by creating a new issue in the repository. 🐛
- Suggest improvements or new features by creating a new issue and describing your ideas. 💡
- Fork the repository, make changes, and submit a pull request for review. 🛠️
The Cypher project is licensed under the GNU Affero General Public License version 3 (AGPL-3.0).