Skip to main content
Module

x/dtils/encryption.ts>encryptSymmetrically

The best unofficial library of utilities for Deno applications
Go to Latest
function encryptSymmetrically
import { encryptSymmetrically } from "https://deno.land/x/dtils@2.5.0/encryption.ts";

Symmetrically encrypt bytes using key, which must be a base64 encoded AES key and prepended 16 byte counter

Parameters

key: string
plainBytes: Uint8Array

Returns

Promise<Uint8Array>