Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-12-2009, 09:03 AM
Junior Member
 
Join Date: Feb 2009
Posts: 3
Default Dll encryption

Hello,

I have such FFish code:

Code:
var ret = Dll.registerFunction(getAdditionalFile("swfkit_dll.dll"), "?fnSwfkit_dll@@YAHXZ", "dllFn", "cdecl", "long");
Dialogs.msgBox(dllFn());

swfkit_dll.dll is a DLL file written with C++. dllFn() returns correct answer if I do not encrypt swfkit_dll.dll file. If I do so (I check the checkbox in resources tab for this dll), dllFn() returns "undefined".

Why cannot DLL files be encrypted?
Reply With Quote
  #2 (permalink)  
Old 05-14-2009, 11:28 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default

Sorry dll cannot be encrypted, because they'll totally different from the resource files like swf movies, flv movies, etc. A possible way to prevent your dll from being used outside swfkit is to set some key for it - every time it asks for a key to run the function, and since the key is built into the output exe file, it would be safe.
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 10:24 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.