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

x/tgcrypto/node/mod.ts>cbc256Decrypt

Wasm port of pyrogram/tgcrypto
Go to Latest
function cbc256Decrypt
import { cbc256Decrypt } from "https://deno.land/x/tgcrypto@0.3.3/node/mod.ts";

Performs CBC-256 decryption.

Parameters

data: Uint8Array

The encrypted data, larger than a byte, divisible by 16

key: Uint8Array

32-byte encryption key

iv: Uint8Array

16-byte initialization vector

Returns

Uint8Array