ECB class

Electronic Codebook (ECB) mode for AES encryption and decryption.

This class extends the AES block cipher to implement the Electronic Codebook (ECB) mode, which is a basic block cipher mode that encrypts and decrypts data in fixed-size blocks.

Inheritance

Constructors

ECB(List<int> key)
Creates an ECB instance with the specified encryption key.

Properties

blockSize int
Block size for AES cipher
finalinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clean() AES
Clears and releases internal key schedule data for security and memory management.
inherited
decryptBlock(List<int> src, [List<int>? dst, PaddingAlgorithm? paddingStyle = PaddingAlgorithm.pkcs7]) List<int>
Decrypts a single data block using the Electronic Codebook (ECB) mode.
override
encryptBlock(List<int> src, [List<int>? dst, PaddingAlgorithm? paddingStyle = PaddingAlgorithm.pkcs7]) List<int>
Encrypts a single data block using the Electronic Codebook (ECB) mode.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setKey(List<int> key, [bool noDecryption = false]) AES
Initializes the AES cipher with the provided encryption key.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited