# Insert a key/value into a flash .exe?

**URL:** <https://forum.kirupa.com/t/insert-a-key-value-into-a-flash-exe/119837>\
**Category:** Uncategorized\
**Created:** [August 18, 2004, 1:19pm UTC](https://forum.kirupa.com/t/insert-a-key-value-into-a-flash-exe/119837 "2004-08-18T13:19:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sikth007](https://avatars.discourse-cdn.com/v4/letter/s/b5a626/32.png) [@sikth007](https://forum.kirupa.com/u/sikth007)\
**Post date:** [August 18, 2004, 1:19pm UTC](https://forum.kirupa.com/t/insert-a-key-value-into-a-flash-exe/119837/1 "2004-08-18T13:19:42Z")

</div>

Ok, not too sure if this is the right place but here goes!

I’ve got a flash application that I’m gonna offer to customers, but I want to insert a unique ID key into the .exe with each download of the application. This is partly for security and partly to identify each customer indiviually.

I have no idea how to go about this however! Before the user can download the file I need to somehow write the key into the exe, and then put some code in the flash program to read this key. Any ideas on how to go about this?

I don’t know anything about hex editing or file manipulation so I’m a bit stumped! I know Java pretty well, which might come in handy for actually inserting the key.

---

<div class="post-metadata">

**Author:** ![newhopekenny](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/newhopekenny/32/317_2.png) [@newhopekenny](https://forum.kirupa.com/u/newhopekenny)\
**Post date:** [August 18, 2004, 2:22pm UTC](https://forum.kirupa.com/t/insert-a-key-value-into-a-flash-exe/119837/2 "2004-08-18T14:22:44Z")

</div>

Download ResHack.

---

<div class="post-metadata">

**Author:** ![sikth007](https://avatars.discourse-cdn.com/v4/letter/s/b5a626/32.png) [@sikth007](https://forum.kirupa.com/u/sikth007)\
**Post date:** [August 18, 2004, 4:11pm UTC](https://forum.kirupa.com/t/insert-a-key-value-into-a-flash-exe/119837/3 "2004-08-18T16:11:50Z")

</div>

Yes I’ve got resHack, but that doesn’t really answer the question. How would I insert the value “on the fly”, and how would I read the value in Flash?

---

<div class="post-metadata">

**Author:** ![newhopekenny](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/newhopekenny/32/317_2.png) [@newhopekenny](https://forum.kirupa.com/u/newhopekenny)\
**Post date:** [August 18, 2004, 4:48pm UTC](https://forum.kirupa.com/t/insert-a-key-value-into-a-flash-exe/119837/4 "2004-08-18T16:48:41Z")

</div>

I’d suggest programming an executable that acts as a container for the SWF/Flash EXE. That way you can do whatever you want.

You could use C++ or Visual Basic (or Visual C++…;)) but I’m almost positive you could write it in Java also:

[http://www.ej-technologies.com/products/exe4j/overview.html](http://www.ej-technologies.com/products/exe4j/overview.html) ( get the app )

I would suggest VB or C++, though.
