EncryptDecrypt class

Constructors

EncryptDecrypt()

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

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

Static Properties

modes Map<AESMode, String>
final

Static Methods

decrypt(String data, String keyString, {String? ivString, AESMode mode = encriptor.AESMode.sic}) String
Decrypts the given data using AES encryption with the provided keyString.
decryptFile(String path, String password, {AESMode mode = encriptor.AESMode.sic}) Future<void>
Decrypt the file at args1 using the password at args2. The decrypted content is saved to a new file with _dec suffix. The original file remains unchanged. The decryption uses SecureCompressor from secure_compressor package. The output file is named ORIGINAL_NAME_dec.txt in the current directory.
encrypt(String data, String keyString, {String? ivString, AESMode mode = encriptor.AESMode.sic}) String
Encrypts the given data using AES encryption with the provided keyString.
encryptFile(String path, String password, {AESMode mode = encriptor.AESMode.sic}) Future<void>
Encrypt the file at args1 using the password at args2. The encrypted content is saved to a new file with _enc suffix. The original file remains unchanged. The encryption uses SecureCompressor from secure_compressor package. The output file is named ORIGINAL_NAME_enc.txt in the current directory.
parseAESMode(String? mode) → AESMode
Parse string (case-insensitive) into AESMode enum using modes