Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/somefn/js/aes.ts>decrypt

some functions for deno
Go to Latest
function decrypt
import { decrypt } from "https://deno.land/x/somefn@v0.27.0/js/aes.ts";

解密

Parameters

cryptoKey: CryptoKey

用于解密的 key

iv: Uint8Array

随机向量

encrypted: string | Uint8Array

需要解密的的二进制数据, 允许 base64 编码的字符串和普通

Returns

Promise<string>