Skip to main content

latest

一个加密算法库。

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
82%
Published
6 days ago (0.1.1)

encryp

包含 sha1RSA 加密算法.

Examples

first new a ts file named test.ts.

import { sha1, RSA } from "@xtool/encryp";

console.log(sha1("good Boy")); // f11e0cafb2f6617472cef0e22b2806d8d9ae3c35
console.log(RSA("good Boy"));

then run the below command:

# run the test.ts
$ deno run test.ts

Add Package

deno add @xtool/encryp

Import symbol

import * as mod from "@xtool/encryp";

Add Package

npx jsr add @xtool/encryp

Import symbol

import * as mod from "@xtool/encryp";

Add Package

yarn dlx jsr add @xtool/encryp

Import symbol

import * as mod from "@xtool/encryp";

Add Package

pnpm dlx jsr add @xtool/encryp

Import symbol

import * as mod from "@xtool/encryp";

Add Package

bunx jsr add @xtool/encryp

Import symbol

import * as mod from "@xtool/encryp";