This file contains hidden or 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
| function EncodeB64(str) { | |
| return window.btoa(unescape(encodeURIComponent(str))); | |
| } | |
| function DecodeB64(str) { | |
| return decodeURIComponent(escape(window.atob(str))); | |
| } | |
| function XorEncrypt(data, salt) { | |
| data = EncodeB64(data); |
This file contains hidden or 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
| #include <string.h> | |
| #include <stdio.h> | |
| #include <malloc.h> | |
| #include <jni.h> | |
| const char *getSignature(JNIEnv *env, jobject context) { | |
| // Build.VERSION.SDK_INT | |
| jclass versionClass = (*env)->FindClass(env, "android/os/Build$VERSION"); | |
| jfieldID sdkIntFieldID = (*env)->GetStaticFieldID(env, versionClass, "SDK_INT", "I"); | |
| int sdkInt = (*env)->GetStaticIntField(env, versionClass, sdkIntFieldID); |
This file contains hidden or 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
| // colors | |
| $c-slate-50: #f8fafc; | |
| $c-slate-100: #f1f5f9; | |
| $c-slate-200: #e2e8f0; | |
| $c-slate-300: #cbd5e1; | |
| $c-slate-400: #94a3b8; | |
| $c-slate-500: #64748b; | |
| $c-slate-600: #475569; | |
| $c-slate-700: #334155; | |
| $c-slate-800: #1e293b; |
This file contains hidden or 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
| var util=require('util') | |
| var WebSocketClient = require('websocket').client; | |
| var client = new WebSocketClient(); | |
| var conn = null | |
| var received = false | |
| client.on('connectFailed', function(error) { | |
| console.log('Connect Error: ' + error.toString()); | |
| }); |