Solved

Can flash exe read from some kind of secure file, or is there a way to secure dat, txt, xml etc.?

Posted on 2008-06-18
7
166 Views
Last Modified: 2010-04-21
Here we go :)
I have a client that wants something like quiz game that will be played localy (flash exe). But he also wants some kind of password protected editor in wich he will be able to change and add questions, also localy.
I sed to him that for something like that you need server, and his reply was "No, no I didn't mean server, I ment exe file in wich I can add and remove questions." So what to respond to that person?

Anyway I don't wish to lose that job, so I was wondering, if I can teach him to write directly into xml or dat file or something else that flash can load and read is there a way to protect that file so that players won't be able to edit it by themselves? Or to make that file readable only to flash exe file?

Thank you for any suggestions.
0
Comment
Question by:mankis
  • 4
  • 3
7 Comments
 
LVL 13

Accepted Solution

by:
crooksy88 earned 500 total points
ID: 21820056
I'm not sure if it is possible to password protect a .txt or .xml file, not without using some other app like winZip.

Have you considered creating a directory which is placed somewhere deep on the c: drive of the PC, then have flash access the txt file from there? As the flash exe is played and the txt file loaded in there would be no way for a user to see where the txt file was coming from.

e.g. have the exe file on the desktop but have the txt file hidden somewhere like:
c:/Program Files/Powerpoint/Temp/questions.txt
0
 

Author Comment

by:mankis
ID: 21820132
I think that my client also wishes to put this game on CD and give to other people. He just wishes to be able to add and change questions, but to disable that options for players (or at least reduce this possibility).
0
 
LVL 13

Expert Comment

by:crooksy88
ID: 21820166
If he is giving out CD's how does he envisage being able to change the questions on other people's computers?


0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 

Author Comment

by:mankis
ID: 21820308
I haven't asked him that yet. Last thing that we spoked was that that I mentioned in the first post. I don't wish to send another post and get another confusing answer. I wish to send him a mail that says: you can't do that but we can do this.
0
 
LVL 13

Expert Comment

by:crooksy88
ID: 21820350
Well if there are multiple copies of the CD all over the place and the questions need to be changed there are only 2 ways to do it as far as I can see:

1. would be to manually change the text file and then email that text file to all owners of the CD and tell them to overwrite the original txt file (NOT a good solution).

2. to have the txt file online and have the exe file connect to the internet and check to see if there was a new version of the txt file available, and if so, download it. To do this would would need additional software like SWFStudio to prepare your exe with a http client.
0
 

Author Comment

by:mankis
ID: 21820464
Yes but in that case the txt file is still not protected, it can be edited anyway.
I'm going to ask my client this questions to know more what does he wants.
0
 

Author Closing Comment

by:mankis
ID: 31468674
Thank you for your help. My client accepted to put txt file away from exe file.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
The Problem How to write an Xquery that works like a SQL outer join, providing placeholders for absent data on the outer side?  I give a bit more background at the end. The situation expressed as relational data Let’s work through this.  I’ve …
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now