1 个不稳定版本
0.1.0 | 2023年1月18日 |
---|
#1902 在 加密学
34KB
819 行
处理 AVM fritzbox 配置文件的工具
工作中...
安装: cargo +nightly install fritzdecode
基本用法
- 在 FritzBox 网页界面中导出配置(设置密码!)
- 运行
fritzdecode decrypt foo_config.export
,并在提示时提供密码
lib.rs
:
用于处理 AVM FritzBox 设备的(加密)配置备份的实用程序。这个库主要是为 fritzdecode
二进制文件提供后端支持,但也可能单独使用。
主要类型是 ConfigBackup
,它允许读取、验证、解密和写入备份文件。
示例
let file = BufReader::new(File::open("config.export").unwrap());
// Load the config backup
let config = ConfigBackup::load(file).unwrap();
// Decrypt any contained values using the password specified during export, update CRC
let config = config.decrypt("1234").unwrap().update_crc();
// Write the decrypted backup to standard output
config.serialize(stdout()).unwrap();
依赖项
~8–11MB
~190K SLoC