'how do i make custom file that acts like an secured folder that only my rust app can access, with a password

I'm making an emulated os that uses a browser to render and a abstraction of file system to allow apps to access their folders only. However, since it's an layer on top of real os (like linux or windows), a dangerous app running on real os can grab tokens and stuff from my emulated os' folder. How to i make a cross platform solution to stop from happening this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source