feat(core): Add URL encryption for GDPR compliancy

This commit is contained in:
smizrahi committed 2023-10-17 16:17:25 +02:00
1 parent ee9899fe3d
commit 31c6f78913
15 files changed
+299 -13

No files matched your search

+15
View File
@@ -819,5 +819,20 @@ NSComparisonResult languageSort(id el1, id el2, void *context)
return disableSharing;
}
- (BOOL)isURLEncryptionEnabled {
return [self boolForKey: @"SOGoURLEncryptionEnabled"];
}
- (NSString *) urlEncryptionPassphrase
{
NSString *passphrase;
passphrase = [self stringForKey: @"SOGoURLEncryptionPassphrase"];
if (!passphrase)
passphrase = @"SOGoSuperSecret0"; // Default passphrase
return passphrase;
}
@end