feat(core): Add URL encryption for GDPR compliancy

This commit is contained in:
smizrahi
2023-10-17 16:17:25 +02:00
parent ee9899fe3d
commit 31c6f78913
15 changed files with 299 additions and 13 deletions
+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