File Protection in Adobe AIR (Flex)

2019-06-05 20:19发布

Is it possible download a file in an AIR application, store it on the user's system, and prohibit access to the files by applications other than the one with which it was downloaded?

标签: flex air adobe
3条回答
\"骚年 ilove
2楼-- · 2019-06-05 20:48

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.

查看更多
太酷不给撩
3楼-- · 2019-06-05 21:00

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.

查看更多
不美不萌又怎样
4楼-- · 2019-06-05 21:05

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

查看更多
登录 后发表回答