Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

In Flash AS3 what is the best way to protect my code?

Posted on 2012-08-22
3
Medium Priority
?
517 Views
Last Modified: 2012-09-07
dear gurus,

I have about 25 SWFs in my App which are loaded at runtime.
Now I want to protect my code in these SWFs.

I've tried some obfiscators including "SecureSWF" but have found them to be pretty insecure - I could decompile them easily with some Apps.

So I thought about encrypting my SWFs at build time and decrypting them in my loader class. I would load the SWF as a XYZ file and decrypt it as a byteArray and use "Loader" class "LoadBytes()" but it only works on SWFs which contain no code :(

Any ideas greatly appreciated :)
0
Comment
Question by:jasonb2
  • 2
3 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 38328079
> thought about encrypting my SWFs at build time and decrypting them in my loader
then you need to tell the loader the passphrase for decrypting, which then is at client side again

your SWF is executed at the client, hence it has to have the decrypted code

hence the simple answer to your simple question
  "what is the best way to protect my code?"

is: don't publish the code.
0
 

Accepted Solution

by:
jasonb2 earned 0 total points
ID: 38335554
thanks :)

I've found a good way to obfuscate our project:

Use "toKaos" to obfuscate the source code.
then, use "SecureSWF" to obfuscate the compiled code.

We do this and are happy with the result.
0
 

Author Closing Comment

by:jasonb2
ID: 38375586
i hope this helps everyone
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Question has a verified solution.

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

The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
This article will show, step by step, how to integrate R code into a R Sweave document
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
Suggested Courses

564 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