CryptoEncryptWorker class final

Crypto worker configuration for file encryption.

Encrypts a file using AES-256-GCM (authenticated encryption) with a PBKDF2-derived key (100,000 iterations, HMAC-SHA256).

File format: SALT(16) || NONCE(12) || CIPHERTEXT || GCM_TAG(16)

Both Android and iOS use AES-256-GCM with the same on-disk format, so files encrypted on one platform can be decrypted on the other.

Inheritance
Annotations

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