Skip to content

Commit fa114b2

Browse files
committed
Replace ZipCrypto with AES256 and update release notes
1 parent 91fb756 commit fa114b2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/localization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# Set application version, and icon
2121
v = "3.6.1"
2222
icon = "io.github.vikdevelop.SaveDesktop"
23-
rel_notes = "<p>This version brings significant speedup of saving and importing configurations thanks to parallel copying (thanks to @ArthurValadares), change of application name from \"SaveDesktop\" to \"Save Desktop\" and minor user interface improvements along with minor bug fixes. Also the import of dynamic wallpapers in GNOME has been improved.</p>\
23+
rel_notes = "<p>This version brings significant speedup of saving and importing configurations thanks to parallel copying (thanks to @ArthurValadares), change of application name from \"SaveDesktop\" to \"Save Desktop\" and minor user interface improvements along with minor bug fixes. Also improved the import of dynamic wallpapers in GNOME and improved archive encryption.</p>\
2424
<p>3.6-hotfix</p><p>Fixed a \"buffer overflow\" error when creating configuration archives by replacing the ZIP utility with 7-Zip.</p>\
2525
<p>3.6</p><ul>\
2626
<li>Added an option to encrypt the periodic saving files and added support for its usage in the synchronization mode</li>\

src/main_window.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1208,7 +1208,7 @@ def start_saving(self):
12081208
os.system(f"echo > {CACHE}/save_config/.folder.sd && mv {CACHE}/save_config '{self.folder}/{self.filename_text}'")
12091209
else:
12101210
if settings["enable-encryption"] == True:
1211-
os.system(f'7z a -tzip -mx=3 -p"{self.password}" -x!*.zip -x!saving_status cfg.sd.zip .')
1211+
os.system(f'7z a -tzip -mem=AES256 -mx=3 -p"{self.password}" -x!*.zip -x!saving_status cfg.sd.zip .')
12121212
else:
12131213
os.system(f"7z a -tzip -mx=3 -x!*.zip -x!saving_status cfg.sd.zip .")
12141214
if self.cancel_process:

src/periodic_saving.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def get_password_from_file(self):
8787
except:
8888
self.password = None
8989
if self.password != None:
90-
os.system(f'7z a -tzip -mx=3 -p"{self.password}" -x!*.zip -x!saving_status cfg.sd.zip .')
90+
os.system(f'7z a -tzip -mem=AES256 -mx=3 -p"{self.password}" -x!*.zip -x!saving_status cfg.sd.zip .')
9191
else:
9292
os.system(f"7z a -tzip -mx=3 -x!*.zip -x!saving_status cfg.sd.zip .")
9393
shutil.copyfile('cfg.sd.zip', f'{self.pbfolder}/{self.filename}.sd.zip')

0 commit comments

Comments
 (0)