Skip to main content

Port of Node.js `cryptr` using Web Crypto API

Works with
This package works with Bun
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Browsers
JSR Score
100%
Published
3 months ago (0.1.1)

deno_cryptr

Port of https://github.com/MauriceButler/cryptr to Web Crypto API.

const cryptr = new Cryptr("secret");

const encrypted = await cryptr.encrypt("my secret message");
const decrypted = await cryptr.decrypt(encrypted);
console.log(decrypted); // my secret message

A notable difference in API is Deno Cryptr is async.

License

MIT licensed. All rights reserved.

Copyright 2024 © DjDeveloperr

Add Package

deno add @djdev/cryptr

Import symbol

import * as mod from "@djdev/cryptr";

Add Package

npx jsr add @djdev/cryptr

Import symbol

import * as mod from "@djdev/cryptr";

Add Package

yarn dlx jsr add @djdev/cryptr

Import symbol

import * as mod from "@djdev/cryptr";

Add Package

pnpm dlx jsr add @djdev/cryptr

Import symbol

import * as mod from "@djdev/cryptr";

Add Package

bunx jsr add @djdev/cryptr

Import symbol

import * as mod from "@djdev/cryptr";