Skip to main content
Module

x/mtkruto/deps.ts>ige256Encrypt

[WIP] Cross-runtime JavaScript library for building Telegram clients
Go to Latest
function ige256Encrypt
import { ige256Encrypt } from "https://deno.land/x/mtkruto@0.0.988/deps.ts";

Performs IGE-256 encryption.

Parameters

data: Uint8Array

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

key: Uint8Array

32-byte encryption key

iv: Uint8Array

32-byte initialization vector

Returns

Uint8Array