TP-00123 | Release String UTF after sha (#9625)
This commit is contained in:
@@ -141,11 +141,13 @@ Java_com_navi_base_security_interceptor_EncryptionHashInterceptor_getKey(
|
||||
mid_StringBuilder_toString);
|
||||
|
||||
const char *hashKeyChars = env->GetStringUTFChars(encodedKey, nullptr);
|
||||
|
||||
std::string finalHashString = SHA256Hashing(hashKeyChars);
|
||||
|
||||
env->
|
||||
ReleaseStringUTFChars(encodedKey, hashKeyChars
|
||||
);
|
||||
|
||||
std::string finalHashString = SHA256Hashing(hashKeyChars);
|
||||
return env->
|
||||
NewStringUTF(finalHashString
|
||||
.
|
||||
|
||||
Reference in New Issue
Block a user