IDSCryptoManager class
A high-level manager for AES-256-CBC encryption and decryption operations.
This class wraps the lower-level IDSCryptoConfiguration utility, which handles key derivation and byte/hex conversions. It provides convenient methods to encrypt and decrypt text using AES with a dynamically generated IV and PBKDF2-derived key.
The encrypted result is returned as a hexadecimal string containing both the ciphertext and the IV (appended at the end).
Constructors
- IDSCryptoManager.new({required IDSCryptoConfiguration crypto})
-
Creates a new IDSCryptoManager with the given
crypto
configuration.
Properties
- crypto → IDSCryptoConfiguration
-
Crypto configuration object containing password, salt, and utility methods.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
decryptText(
String encryptedWithIV) → String -
Decrypts a hexadecimal string
encryptedWithIV
that was encrypted usingencryptText
. -
encryptText(
String plainText) → String -
Encrypts the provided
plainText
using AES-256-CBC with PKCS7 padding. -
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