FileCryptor class

FileCryptor for encryption and decryption files.

Constructors

FileCryptor({required String key, required int iv, required String dir, bool useCompress = false})
key is using for encrypt and decrypt given file

Properties

dir String
dir working directory
final
hashCode int
The hash code for this object.
no setterinherited
iv int
iv is Initialization vector encryption times
final
key String
key is using for encrypt and decrypt given file
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
useCompress bool
useCompress for compressing file as GZip.
final

Methods

decrypt({String? inputFile, String? outputFile, bool? useCompress}) Future<File>
inputFile encrypted file name
decryptUint8List({Uint8List? data, bool? useCompress}) Uint8List
Decrypt given Uint8List data.
encrypt({String? inputFile, String? outputFile, bool? useCompress}) Future<File>
inputFile input file name
encryptUint8List({Uint8List? data, bool? useCompress}) Uint8List
Encrypt given Uint8List data.
getCurrentDir() String
Get current absolute working directory
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