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

x/dryptography/aes/modes/ctr.ts>default

Deno port of https://github.com/spalt08/cryptography
Latest
class default
import { default } from "https://deno.land/x/dryptography@v0.1.4/aes/modes/ctr.ts";

AES-IGE mode.

Constructors

new
default(
key: string | Uint32Array | Uint8Array,
counter: string | Uint32Array | Uint8Array,
blockSize?,
)

Properties

blockSize: number
cipher: AES
counter: Uint32Array
key: Uint32Array
offset: number

Methods

decrypt(message: string | Uint32Array | Uint8Array, buf?: Uint32Array)

Decrypts cipher text with AES-IGE mode.

encrypt(message: string | Uint32Array | Uint8Array, buf?: Uint32Array)

Encrypts plain text with AES-IGE mode.