Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/tgcrypto/mod.ts>cbc256Encrypt

WASM port of pyrogram/tgcrypto
Go to Latest
function cbc256Encrypt
import { cbc256Encrypt } from "https://deno.land/x/tgcrypto@0.1.3/mod.ts";

Performs CBC-256 encryption.

Parameters

data: Uint8Array

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

key: Uint8Array

32-byte encryption key

iv: Uint8Array

16-byte initialization vector

Returns

Uint8Array