media-kit / media-kit

A cross-platform video player & audio player for Flutter & Dart.
https://github.com/media-kit/media-kit
MIT License
893 stars 126 forks source link

Not Deleting Temporary Files After Being Created in Memory #761

Open mohammadinfo opened 1 month ago

mohammadinfo commented 1 month ago

I'm using the Memory method to read the file, but the problem is that the file created is not deleted. I have sensitive videos and I want them to be stored in RAM, not in the hard drive, but they are not deleted and the file can be easily found. I manually made changes in the package itself and the problem was solved, but I want the package itself to be fixed so that there won't be any issues when transferring the project to other systems. Right now, I have to manually make changes for each system.

sevenrats commented 1 month ago

A framework like flutter is not remotely appropriate for the level of security that you are attempting to implement, much of which is simple theatre anyway. Flutter cannot fight the OS over memory security, and deleting files which you yourself have created is not the job of your video playback library.