fix: replace magic-crypt with aes-gcm for bookmark encryption

magic-crypt has known vulnerabilities. Replace it with aes-gcm for new
encryption (authenticated, with random nonces) while keeping a legacy
AES-128-CBC decryption path to transparently handle existing bookmarks.
This commit is contained in:
Christian Visintin
2026-02-28 15:26:42 +01:00
parent 1461a68bb3
commit e8eed9f8d1
4 changed files with 210 additions and 77 deletions

View File

@@ -16,8 +16,6 @@ extern crate bitflags;
extern crate lazy_regex;
#[macro_use]
extern crate log;
#[macro_use]
extern crate magic_crypt;
use std::env;
use std::path::{Path, PathBuf};