Created
August 3, 2014 16:46
-
-
Save katopz/e9b86a1bc979439a87e9 to your computer and use it in GitHub Desktop.
Using CrossBridge/FlasCC for Code Obfuscation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://bruce-lab.blogspot.com/2014/08/using-crossbridgeflascc-for-code.html | |
// https://forums.adobe.com/message/5121420 | |
// http://hecool108.blogspot.com/2013/08/hide-your-key-with-alchemyflascccrossbr.html | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include "AS3/AS3.h" | |
void gk() __attribute__((used, | |
annotate("as3sig:public function ec(keystr:String):String"), | |
annotate("as3package:rivolo.ec"))); | |
void gk() | |
{ | |
char* head = "88dfhdjgsw902k"; | |
char* result = NULL; | |
AS3_DeclareVar(asResult, String); | |
AS3_CopyCStringToVar(asResult, head, strlen(head)); | |
AS3_ReturnAS3Var(asResult); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment