[#60] Services: Encrypt zip files for backup and upload
Test / Run tests (push) Successful in 2m12s

This commit is contained in:
lorenz.stechauner committed 2026-11-25 14:08:57 +01:00
1 parent f388ddbe41
commit 4bb13dbb06
10 files changed
+116 -73

No files matched your search

+3 -3
View File
@@ -274,7 +274,7 @@ namespace Elwig.Windows {
return;
await App.Current.Dispatcher.BeginInvoke(async () => {
await App.ReplaceDatabase(filename);
await App.ReplaceDatabase(filename, App.Config.SyncDecryptionKeys);
});
} catch (HttpRequestException exc) {
InteractionService.ShowException("Datenbank herunterladen", "Eventuell Internetverbindung prüfen!", exc);
@@ -292,7 +292,7 @@ namespace Elwig.Windows {
return;
if (!App.Config.SyncMain) {
InteractionService.ShowInformation("Datenbank hochladen", "Hochladen nicht möglich: Dieses Gerät ist nicht das Hauptgerät!");
InteractionService.ShowInformation("Datenbank hochladen", "Hochladen nicht möglich:\nDieses Gerät ist nicht das Hauptgerät!");
return;
}
@@ -303,7 +303,7 @@ namespace Elwig.Windows {
await Task.Run(async () => {
try {
var path = Path.Combine(App.TempPath, "database.sql.zip");
await Database.ExportSql(path, true);
await Database.ExportSql(path, true, App.Config.SyncEncryptionKey);
await Utils.UploadExportData(path, App.Config.SyncUrl, App.Config.SyncUsername, App.Config.SyncPassword);
InteractionService.ShowInformation("Datenbank hochladen", $"Hochladen der gesamten Datenbank erfolgreich!");
} catch (HttpRequestException exc) {