Skip to main content
Module

x/mtkruto/0_deps.ts>ctr256

Cross-runtime JavaScript library for building Telegram clients
Latest
function ctr256
import { ctr256 } from "https://deno.land/x/mtkruto@0.2.30/0_deps.ts";

Performs CTR-256 encryption/decryption.

Parameters

data: Uint8Array

The data, larger than a byte

key: Uint8Array

32-byte encryption key

16-byte initialization vector