FileCryptor constructor
FileCryptor({})
key is using for encrypt and decrypt given file
iv is Initialization vector encryption times
dir working directory
useCompress for compressing file as GZip.
Implementation
FileCryptor({
required this.key,
required this.iv,
required this.dir,
this.useCompress = false,
}) : assert(key.length == 32, "key length must be 32"),
this._iv = IV.fromLength(iv),
this._key = Key.fromUtf8(key);