Page MenuHomePhorge

D7243.1768405367.diff
No OneTemporary

Size
744 B
Referenced Files
None
Subscribers
None

D7243.1768405367.diff

diff --git a/native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp b/native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp
--- a/native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp
+++ b/native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp
@@ -739,8 +739,14 @@
void SQLiteQueryExecutor::assign_encryption_key() {
CommSecureStore commSecureStore{};
+
+#if DEBUG
+ std::string encryptionKey{"DEBUG"};
+#else
std::string encryptionKey = comm::crypto::Tools::generateRandomHexString(
SQLiteQueryExecutor::sqlcipherEncryptionKeySize);
+#endif
+
commSecureStore.set(
SQLiteQueryExecutor::secureStoreEncryptionKeyID, encryptionKey);
SQLiteQueryExecutor::encryptionKey = encryptionKey;

File Metadata

Mime Type
text/plain
Expires
Wed, Jan 14, 3:42 PM (8 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5921425
Default Alt Text
D7243.1768405367.diff (744 B)

Event Timeline