How n-ith/srm works
Secure RM is a command-line secure-deletion tool. The main workflow accepts file or recursive-directory targets, confirms unless forced, then orchestrates encryption, overwrite passes, optional metadata sanitization, and filesystem removal; it can also report hashed-path deletion logs. The graph separates CLI, deletion orchestration and operations, and cryptographic support. The README documents these capabilities, while the sampled source shows their principal calls; no separate logging or metadata subsystem exists in the tree.
Main entry points: deleter.py Deletion orchestrator · cli.py CLI and confirmation · operations.py File operations · crypto.py Ephemeral encryption
Components 11
Command line
- CLI and confirmation
srm/cli.py
Deletion workflow
- Deletion orchestrator
srm/deleter.py - File operations
srm/operations.py - Directory operations
srm/operations.py - Deletion log output
srm/deleter.py
Cryptographic support
- Ephemeral encryption
srm/crypto.py - Overwrite patterns
srm/crypto.py - Path hashing
srm/crypto.py
Other components
- User
- Target files
- Filesystem
Connections 13
- User → CLI and confirmation: supplies targets
srm/cli.py - CLI and confirmation → Deletion orchestrator: dispatches deletion
srm/cli.py - CLI and confirmation → Deletion log output: requests log
srm/cli.py - Deletion orchestrator → File operations: runs file stages
srm/deleter.py - Deletion orchestrator → Directory operations: collects and removes
srm/deleter.py - File operations → Ephemeral encryption: encrypts contents
srm/operations.py - File operations → Overwrite patterns: generates pass data
srm/operations.py - Deletion orchestrator → Path hashing: hashes log paths
srm/deleter.py - CLI and confirmation → Filesystem: counts targets
srm/cli.py - File operations → Filesystem: reads and writes files
srm/operations.py - Directory operations → Filesystem: walks and removes directories
srm/operations.py - Deletion orchestrator → Filesystem: validates targets
srm/deleter.py - Deletion log output → User: prints entries
srm/deleter.py