EncryptedData class
A data class representing the components of hybrid-encrypted data.
This class includes the AES-encrypted key, initialization vector (IV), and the encrypted payload, as well as the private RSA key used for decryption.
Fields:
- encryptedKey: A Base64-encoded string of the AES key.
- iv: A Base64-encoded string of the initialization vector (16 bytes).
- encryptedData: A Base64-encoded string of the encrypted payload.
- privateKey: An
RSAPrivateKey
object for decryption (optional).
Constructors
- EncryptedData({required String encryptedKey, required String encryptedData, required String iv, required RSAPrivateKey privateKey})
-
factory
Properties
- encryptedData → String
-
final
- encryptedKey → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- iv → String
-
final
- privateKey → RSAPrivateKey
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited