Skip to content

Instantly share code, notes, and snippets.

@AliAzaz
Created Jul 7, 2021
Embed
What would you like to do?
.cpp file to secure key
#include <jni.h>
#include <string>
extern "C"
JNIEXPORT jstring JNICALL
Java_edu_practice_utils_shared_Keys_apiKey(JNIEnv *env, jobject thiz) {
std::string api_key = "c527aa8fadcb58f1cccef75e3a64a3ae";
return env->NewStringUTF(api_key.c_str());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment