AES class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
areParamsVaild<A, B, C>(C? cipherText, A? key, {CipherOptions? options})
→ void
-
The
areParamsVaild
method is a helper method that checks if the parameters passed to the encrypt
and decrypt
methods are valid.
inherited
-
decrypt<Text, Key>(Text? ciphertext, Key? key, {CipherOptions? options})
→ Uint8List
-
The
decrypt
method takes in cipher text, a key, and optionally an initialization vector (iv) and cipher options.
It returns a Uint8List
which contains the decrypted data.
The method is generic and can work with any type of data for the cipher text, key, and iv.
override
-
encrypt<Text, Key>(Text? plainText, Key? key, {CipherOptions? options})
→ CipherParams
-
The
encrypt
method takes in plain text, a key, and optionally an initialization vector (iv) and cipher options.
It returns a CipherParams
object which contains the encrypted data.
The method is generic and can work with any type of data for the plain text, key, and iv.
override
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited