Advertisement
DontPanic284

Untitled

Sep 3rd, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.11 KB | None | 0 0
  1. #include <jni.h>
  2. #include <string>
  3.  
  4. extern "C"
  5. JNIEXPORT jstring
  6. JNICALL
  7. Java_com_vtech_topiq_domain_repository_local_NativeHelperImpl_getChecksumKey(
  8.         JNIEnv *env,
  9.         jobject /* this */) {
  10.     std::string encodeKey = "password here";
  11.     return env->NewStringUTF(encodeKey.c_str());
  12. }
  13.  
  14. extern "C"
  15. JNIEXPORT jstring
  16. JNICALL
  17. Java_com_vtech_topiq_domain_repository_local_NativeHelperImpl_getChecksumDevKey(
  18.         JNIEnv *env,
  19.         jobject /* this */) {
  20.     std::string encodeKey = "password here1";
  21.     return env->NewStringUTF(encodeKey.c_str());
  22. }
  23.  
  24. extern "C"
  25. JNIEXPORT jstring
  26. JNICALL
  27. Java_com_vtech_topiq_domain_repository_local_NativeHelperImpl_getEncryptKey(
  28.         JNIEnv *env,
  29.         jobject /* this */) {
  30.     std::string encryptKey = "password here2";
  31.     return env->NewStringUTF(encryptKey.c_str());
  32. }
  33.  
  34. extern "C"
  35. JNIEXPORT jstring
  36. JNICALL
  37. Java_com_vtech_topiq_domain_repository_local_NativeHelperImpl_getEncryptDevKey(
  38.         JNIEnv *env,
  39.         jobject /* this */) {
  40.     std::string encryptKey = "password here3";
  41.     return env->NewStringUTF(encryptKey.c_str());
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement