File Protection in Adobe AIR (Flex)

我的未来我决定 提交于 2019-12-09 02:16:28

Certainly not easily done on Windows. You might have better luck encrypting it's contents.

EDIT: Creating a file not accessible by other programs is very virus-like behavior.

Encryption is indeed probably the way to go. AIR does have a handy encrypted local store which should simplify this approach for you:

http://livedocs.adobe.com/flex/3/langref/flash/data/EncryptedLocalStore.html

Your best bet is to store the contents of the file in the EncryptedLocalStore or a local shard object. While you can store the downloaded file in a directory on the user's file system, you aren't going to be able to prevent it from being accessed by other applications (or the user) on the system. That's a security issue because that's how a lot of viruses work.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!