From ab0fef3c49bd93f8dd50f851b197dbf39432800f Mon Sep 17 00:00:00 2001 From: monkberry Date: Wed, 31 Dec 2025 05:42:58 +0900 Subject: [PATCH] Fix: conflict between Raw64 and PlaintextNames flags in config --- libcppcryptfs/config/cryptconfig.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libcppcryptfs/config/cryptconfig.cpp b/libcppcryptfs/config/cryptconfig.cpp index 05526df..8d09570 100644 --- a/libcppcryptfs/config/cryptconfig.cpp +++ b/libcppcryptfs/config/cryptconfig.cpp @@ -872,8 +872,11 @@ bool CryptConfig::create(const WCHAR *path, const WCHAR *specified_config_file_p if (siv) m_AESSIV = true; - // Raw64 and HKDF default to true - m_Raw64 = true; + // Raw64 defaults to true, but must be disabled if PlaintextNames is active + // (PlaintextNames implies filenames are not encrypted, so Base64 encoding is conflicting) + m_Raw64 = !m_PlaintextNames; + + // HKDF default to true m_HKDF = true; if (reverse)