CryptoEncryptWorker class final
Crypto worker configuration for file encryption.
Encrypts a file using AES-256 with PBKDF2 password-derived key.
⚠️ Platform Compatibility Warning: Android uses AES-256-CBC mode; iOS uses AES-256-GCM mode. Files encrypted on Android cannot be decrypted on iOS and vice versa. Use this worker only for single-platform encryption, or when both encrypt and decrypt operations happen on the same OS.
Constructors
- CryptoEncryptWorker({required String inputPath, required String outputPath, required String password, EncryptionAlgorithm algorithm = EncryptionAlgorithm.aes})
-
const
Properties
- algorithm → EncryptionAlgorithm
-
Encryption algorithm (currently only AES supported).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- inputPath → String
-
Path to file to encrypt.
final
- outputPath → String
-
Path where encrypted file will be saved.
final
- password → String
-
Password for encryption (will be used to derive key).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- workerClassName → String
-
Get the worker class name for native side.
no setteroverride
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
Convert to map for platform channel.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited