@guardify/browser
v1.0.2
Published
Guardify Browser Package – Secure API encryption and compression for frontend applications.
Downloads
3
Readme
@guardify/browser
Guardify Browser Package – Secure API encryption and compression for frontend applications.
Installation
npm install @guardify/browserUsage
import { encryptAndCompressRSA } from "@guardify/browser";
const payload = { name: "jaydip", age: 20 };
const encryptedCompressed = await encryptAndCompressRSA(
payload,
`-----BEGIN PUBLIC KEY-----
...your public key here...
-----END PUBLIC KEY-----`
);
await fetch("http://localhost:3000/submit", {
method: "POST",
headers: { "Content-Type": "application/octet-stream" },
body: encryptedCompressed,
});Features
Easy encryption & compression
Works in the browser
TypeScript ready
Works with Node.js backend decryption
