Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/somefn/js/aes.ts>encrypt

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

加密

Parameters

cryptoKey: CryptoKey

用于加密的 key

iv: Uint8Array

随机向量

data: Uint8Array | string

需要加密的数据. 允许普通字符串 (并非 base64 字符串) 或者二进制数据