# SWF encryption

**URL:** <https://forum.kirupa.com/t/swf-encryption/261286>\
**Category:** flash\
**Created:** [May 25, 2008, 7:12pm UTC](https://forum.kirupa.com/t/swf-encryption/261286 "2008-05-25T19:12:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sekasi](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@sekasi](https://forum.kirupa.com/u/sekasi)\
**Post date:** [May 25, 2008, 7:12pm UTC](https://forum.kirupa.com/t/swf-encryption/261286/1 "2008-05-25T19:12:03Z")

</div>

Don’t get me wrong, I don’t care if all people on the earth decompile my stuff and re-use the code. I’m not looking for protection against decompiling per say, I’m looking for a way to encrypt a string that is written in plain text in actionscript.

Will SWF encryption accomplish this? For instance if you have a variable defined somewhere

public var HolyMoly:String = "johnthebaptist@christianity.org";

And you would prefer if noone could get their hands on the direct email address to johnthebaptist, how would you solve this? Thankful for any insight.

---

<div class="post-metadata">

**Author:** ![Anogar](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@Anogar](https://forum.kirupa.com/u/Anogar)\
**Post date:** [May 25, 2008, 7:45pm UTC](https://forum.kirupa.com/t/swf-encryption/261286/2 "2008-05-25T19:45:15Z")

</div>

You would store the information at a secure server-side location. What you’re trying to do is kind of akin to putting a mailto link in an HTML document and then trying to hide it. :-/

---

<div class="post-metadata">

**Author:** ![sekasi](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@sekasi](https://forum.kirupa.com/u/sekasi)\
**Post date:** [May 25, 2008, 7:48pm UTC](https://forum.kirupa.com/t/swf-encryption/261286/3 "2008-05-25T19:48:37Z")

</div>

No, I think you’re misunderstanding me a bit… I need to use that string throughout the class, and putting the data server side wouldn’t really help me since I would have to call something from inside flash anyway, and decompiling would reveal that either way.

---

<div class="post-metadata">

**Author:** ![glosrfc](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/glosrfc/32/8334_2.png) [@glosrfc](https://forum.kirupa.com/u/glosrfc)\
**Post date:** [May 25, 2008, 7:55pm UTC](https://forum.kirupa.com/t/swf-encryption/261286/4 "2008-05-25T19:55:51Z")

</div>

> [@sekasi;2330981](#):
>
> Will SWF encryption accomplish this?

Not entirely. It would prevent most people who use a decompiler from finding out what the string is, and you could make it harder still by nesting the string within a dozen functions and then encrypting the entire SWF. But, if someone was really determined, they might still be able to decompile the original string.

You might want to look at this way of transferring encrypted data from a secure server to a SWF:  
[http://www.jek2k.com/wp/index.php/2007/05/22/cryptography-and-flash/](http://www.jek2k.com/wp/index.php/2007/05/22/cryptography-and-flash/)

---

<div class="post-metadata">

**Author:** ![sekasi](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@sekasi](https://forum.kirupa.com/u/sekasi)\
**Post date:** [May 25, 2008, 8:43pm UTC](https://forum.kirupa.com/t/swf-encryption/261286/5 "2008-05-25T20:43:11Z")

</div>

Well… it kinda leads to the same dilemma… really. Decompile, re-create with the same class and path and voila… : )

---

<div class="post-metadata">

**Author:** ![joef5052881](https://avatars.discourse-cdn.com/v4/letter/j/54ee81/32.png) [@joef5052881](https://forum.kirupa.com/u/joef5052881)\
**Post date:** [May 28, 2008, 11:35am UTC](https://forum.kirupa.com/t/swf-encryption/261286/6 "2008-05-28T11:35:28Z")

</div>

[mabinogi gold [url=http://www.igxz.com/star-wars-galaxies-credits-s.html]swg credits [url=http://www.igxz.com/warhammer-gold-s.html]warhammer gold [url=http://www.ccoool.com/warhammer-gold-s.html]warhammer gold [url=http://www.lotro-sale.com/warhammer-gold/]warhammer gold](http://www.igxz.com/mabinogi-gold-s.html)
