Skip to main content
Home

web api的加/解密,签名/验证工具,包括aes和hmac,rsa

This package works with Cloudflare Workers, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
94%
Published
2 years ago (0.0.2)
class RSAOAEP

RSA-OAEP sha-256 modulusLength 2048

Methods

实例化的解密方法

实例化的加密功能

导出内部的密钥

private
initCryptKey(force?: boolean)

初始化内部的密钥

给出原始的公钥对象

Static Methods

生成共私钥对,但并不重写内部的密钥对

decrypt(
privateKey: CryptoKey,
ciphertext: ArrayBuffer,
): Promise<ArrayBuffer>

解密功能

加密功能

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:@advanced/crypto

Import symbol

import { RSAOAEP } from "@advanced/crypto";
or

Import directly with a jsr specifier

import { RSAOAEP } from "jsr:@advanced/crypto";

Add Package

bunx jsr add @advanced/crypto

Import symbol

import { RSAOAEP } from "@advanced/crypto";