| 380 | #ifndef MMKV_DISABLE_CRYPT |
| 381 | |
| 382 | string MMKV::cryptKey() const { |
| 383 | SCOPED_LOCK(m_lock); |
| 384 | |
| 385 | if (m_crypter) { |
| 386 | char key[AES256_KEY_LEN]; |
| 387 | m_crypter->getKey(key); |
| 388 | return {key, strnlen(key, AES256_KEY_LEN)}; |
| 389 | } |
| 390 | return ""; |
| 391 | } |
| 392 | |
| 393 | void MMKV::checkReSetCryptKey(const string *cryptKey, bool aes256) { |
| 394 | SCOPED_LOCK(m_lock); |