aes_crypt icon indicating copy to clipboard operation
aes_crypt copied to clipboard

read file from asset directory

Open phil-homecu opened this issue 4 years ago • 1 comments

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?

phil-homecu avatar Oct 16 '20 23:10 phil-homecu

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.

lokeez avatar Nov 02 '20 07:11 lokeez