MCPcopy Create free account
hub / github.com/Tencent/MMKV / cryptKey

Function cryptKey

Android/MMKV/mmkv/src/main/cpp/native-bridge.cpp:920–929  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

918# ifndef MMKV_DISABLE_CRYPT
919
920MMKV_JNI jstring cryptKey(JNIEnv *env, jobject instance) {
921 MMKV *kv = getMMKV(env, instance);
922 if (kv) {
923 string cryptKey = kv->cryptKey();
924 if (cryptKey.length() > 0) {
925 return string2jstring(env, cryptKey);
926 }
927 }
928 return nullptr;
929}
930
931MMKV_JNI jboolean doReKey(JNIEnv *env, jobject instance, jstring cryptKey, jboolean aes256) {
932 MMKV *kv = getMMKV(env, instance);

Callers

nothing calls this directly

Calls 3

getMMKVFunction · 0.85
string2jstringFunction · 0.85
cryptKeyMethod · 0.45

Tested by

no test coverage detected