How eduardoklosowski/rsfn-file works
RSFN File is a command-line tool for inspecting and validating RSFN security headers, and for encrypting or decrypting files. Its principal workflow runs from CLI options through the encryption/decryption actions, which coordinate certificate and key handling, content encoding/compression, cryptography, and the version-3 header. The README also documents standalone header inspection and validation. The sampled excerpts establish the CLI dispatch and core action dependencies; details of some unsampled action internals are represented only where their dependencies are explicit.
Main entry points: actions.rs Encryption workflow · rsfnfile.rs rsfnfile commands · mod.rs Security header · cert.rs Certificate handling
Components 16
CLI
- rsfnfile commands
src/bin/rsfnfile.rs - Header inspection
src/bin/rsfnfile.rs - Encrypt command
src/bin/rsfnfile.rs - Decrypt command
src/bin/rsfnfile.rs
File processing
- Encryption workflow
src/actions.rs - Decryption workflow
src/actions.rs - Result reporting
src/actions.rs
RSFN format
- Header loading
src/actions.rs - Security header
src/header/mod.rs - Header fields
src/header/fields/mod.rs
Security and content
- Certificate handling
src/cert.rs - RSA and AES
src/ciphers/mod.rs - Compression
src/compress/mod.rs - Encoding
src/encode/mod.rs
Other components
- User
- Input/output files
Connections 27
- User → rsfnfile commands: selects command
- rsfnfile commands → Header inspection: dispatches
- rsfnfile commands → Encrypt command: dispatches
- rsfnfile commands → Decrypt command: dispatches
- Header inspection → Input/output files: reads file
- Header inspection → Header loading: loads header
- Header inspection → Input/output files: writes display
- Header loading → Security header: parses
- Security header → Header fields: uses fields
- Encrypt command → Input/output files: reads input
- Encrypt command → Encryption workflow: invokes
- Encryption workflow → Certificate handling: loads certificates
- Encryption workflow → RSA and AES: encrypts content
- Encryption workflow → Compression: compresses content
- Encryption workflow → Encoding: encodes content
- Encryption workflow → Security header: formats header
- Encrypt command → Result reporting: prints result
- Result reporting → Input/output files: writes output
- Decrypt command → Input/output files: reads input
- Decrypt command → Decryption workflow: invokes
- Decryption workflow → Header loading: loads header
- Decryption workflow → Certificate handling: loads certificates
- Decryption workflow → RSA and AES: decrypts and verifies
- Decryption workflow → Compression: decompresses content
- Decryption workflow → Encoding: decodes content
- Decrypt command → Result reporting: prints result
- Result reporting → Input/output files: writes content