Skip to main content
Module

x/tgcrypto/mod.ts>ctr256

Wasm port of pyrogram/tgcrypto
Latest
function ctr256
import { ctr256 } from "https://deno.land/x/tgcrypto@0.4.1/mod.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