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

x/dtils/devops/deps.ts>dtils.encryptSymmetrically

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

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

Parameters

key: string
plainBytes: Uint8Array