Skip to main content
Module

x/dtils/mod.ts>encryptSymmetricallyWithBytes

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

Symmetrically encrypt bytes using keyBytes, which must be an AES key, with a 16 byte counter prepended

Parameters

keyBytes: Uint8Array
plainBytes: Uint8Array

Returns

Promise<Uint8Array>