How unknownvps/cfetools works
CFETools (Axle) is a C++ command-line tool for encoding files into BMP images and decoding them back, with compression, encryption, folder support, and diff/patch and file-splitting workflows. The principal path is command dispatch, image creation and pixel writing, then BMP reading, reconstruction, and any requested decompression or unpacking. Separate command families provide patching and threshold-based share reconstruction. Some command implementations were not sampled, so links for those documented workflows reflect the command and subsystem paths in the tree; uncertain internal wiring is omitted.
Main entry points: main.cpp CLI entry · create_file.cpp File reconstruction · create_img.cpp Image creation · bmp_writer.cpp BMP pixel writer
Components 21
CLI and commands
- CLI entry
main.cpp - Command loader
cmds/command_loader.h - Encode command
cmds/encode.h - Decode command
cmds/decode.h - Pack command
cmds/pack.h - Compress command
cmds/compress.h - Patch commands
cmds/patch.h - Split command
cmds/split.h
Image encoding
- Image creation
func/img_creation/create_img.cpp - BMP pixel writer
utils/bmp/writer/bmp_writer.cpp - Embedded metadata
utils/aio/aio_header.cpp - Folder packing
func/folder_packer/folder_packer.cpp
Decode and restore
- BMP pixel reader
utils/bmp/reader/bmp_reader.cpp - File reconstruction
func/file_creation/create_file.cpp - Decompression
utils/compress/decompress.cpp - File verification
utils/hashers/fileHasher.hpp
Diff and patch
- Patch engine
func/patch_creation/patch.cpp
Split and integrate
- Integrate command
cmds/integrate.h - Share processing
func/split_integrate/split_integrate.cpp
Other components
- CLI user
- Files and shares
Connections 27
- CLI user → CLI entry: runs commands
- CLI entry → Command loader: loads commands
- CLI entry → Encode command: dispatches
- CLI entry → Decode command: dispatches
- CLI entry → Pack command: dispatches
- CLI entry → Compress command: dispatches
- CLI entry → Patch commands: dispatches
- CLI entry → Split command: dispatches
- CLI entry → Integrate command: dispatches
- Encode command → Image creation: creates image
- Pack command → Folder packing: packs folders
- Image creation → BMP pixel writer: writes pixels
- BMP pixel writer → Embedded metadata: writes metadata
- BMP pixel writer → Files and shares: writes BMP
- Image creation → Files and shares: writes metadata file
- Decode command → BMP pixel reader: reads image
- BMP pixel reader → File reconstruction: provides decoded bytes
- File reconstruction → Decompression: decompresses payload
- File reconstruction → Folder packing: unpacks folders
- File reconstruction → File verification: verifies file
- File reconstruction → Files and shares: writes restored files
- Patch commands → Patch engine: creates or applies
- Patch engine → Files and shares: writes patch or result
- Split command → Share processing: splits file
- Share processing → Files and shares: writes shares
- Integrate command → Share processing: reconstructs shares
- Integrate command → Files and shares: writes reconstructed file