aes_crypt
aes_crypt copied to clipboard
read file from asset directory
I am using this library in flutter.
In
crypt.decryptDataFromFileSync(documentName)
documentName = assets/pdf/tfnt/tfnt_en.pdf
I am getting an error
FileSystemException: Source file assets/pdf/tfnt/tfnt_en.pdf does not exist., path = ''
Does the library support reading files in the assets directory?
I want this functionality too (read and decrypt files from assets).
Something like this: read image from assets with rootBundle.load(/*IMAGE PATH HERE*/)).buffer.asUint8List()
, then decrypt that BytaData and use it in Image.memory
constructor.
But I can't use aesDecrypt()
function in this case, because this function can't decrypt in-memory bytelist that represents AES Crypt file format.
I need help with it.