Skip to main content
Home

Simple JSON encryption/decryption for browser and server communications

This package works with Node.js, Bun, BrowsersIt is unknown whether this package works with Cloudflare Workers, Deno
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
It is unknown whether this package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
2 months ago (1.0.1)

Encrypts a JSON object using a simple insertion method

  1. btoa (base64 encode) the stringified JSON
  2. Generate a random n-digit key
  3. Insert the key at a random position in the encoded string
  4. Append the key length and insertion position at the end

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@codesordinate/json-encrypt

Import symbol

import * as json_encrypt from "@codesordinate/json-encrypt";
or

Import directly with a jsr specifier

import * as json_encrypt from "jsr:@codesordinate/json-encrypt";

Add Package

pnpm i jsr:@codesordinate/json-encrypt
or (using pnpm 10.8 or older)
pnpm dlx jsr add @codesordinate/json-encrypt

Import symbol

import * as json_encrypt from "@codesordinate/json-encrypt";

Add Package

yarn add jsr:@codesordinate/json-encrypt
or (using Yarn 4.8 or older)
yarn dlx jsr add @codesordinate/json-encrypt

Import symbol

import * as json_encrypt from "@codesordinate/json-encrypt";

Add Package

vlt install jsr:@codesordinate/json-encrypt

Import symbol

import * as json_encrypt from "@codesordinate/json-encrypt";

Add Package

npx jsr add @codesordinate/json-encrypt

Import symbol

import * as json_encrypt from "@codesordinate/json-encrypt";

Add Package

bunx jsr add @codesordinate/json-encrypt

Import symbol

import * as json_encrypt from "@codesordinate/json-encrypt";