1 unstable release
0.1.0 | Jan 18, 2023 |
---|
#1893 in Cryptography
34KB
819 lines
Tools for working with AVM fritzbox config files
WIP.
Installation: cargo +nightly install fritzdecode
Basic usage:
- Export the configuration in the FritzBox web interface (set a password!)
- Run
fritzdecode decrypt foo_config.export
, providing the password when prompted
lib.rs
:
Utilities for working with (encrypted) config backups from AVM FritzBox
devices. This library is mostly designed as a backing for the fritzdecode
binary, but might be useful on its own as well.
The main type is ConfigBackup
, it allows reading, verifying, decrypting
and writing backup files.
Examples
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();
Dependencies
~8–15MB
~184K SLoC