Skip to content

Instantly share code, notes, and snippets.

@katopz
Created August 3, 2014 16:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save katopz/e9b86a1bc979439a87e9 to your computer and use it in GitHub Desktop.
Save katopz/e9b86a1bc979439a87e9 to your computer and use it in GitHub Desktop.
Using CrossBridge/FlasCC for Code Obfuscation
// 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