Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/crypto/src/aes/mod.ts>Aes

🔐 Fastest crypto library for Deno written in pure Typescript. AES, Blowfish, CAST5, DES, 3DES, HMAC, HKDF, PBKDF2
Latest
class Aes
implements BlockCipher
import { Aes } from "https://deno.land/x/crypto@v0.10.1/src/aes/mod.ts";

Advanced Encryption Standard (AES) block cipher.

Note: This is a low level class. Use a block cipher mode to encrypt and decrypt data.

Constructors

new
Aes(key: Uint8Array)

Methods

decryptBlock(data: DataView, offset: number)
encryptBlock(data: DataView, offset: number)

Static Properties

readonly
BLOCK_SIZE: number

The block size of the block cipher in bytes