How dominictobias/securepad works
SecurePad is a Notepad++ plugin for encrypting and decrypting documents or selections with Blowfish. The documented user workflow is to invoke a plugin command, choose an encryption action, and apply it to editor content; the README establishes the product behavior, but the sampled implementation does not show the command handlers’ internal calls. The repository also includes a reusable docking-dialog layer. Edges between those implementation stages are omitted where the excerpts do not establish them.
Main entry points: PluginInterface.h Plugin API · DockingDlgInterface.h Docking interface · PluginDefinition.cpp Plugin commands · StaticDialog.h Dialog interface
Components 19
Plugin integration
- Plugin commands
PluginDefinition.cpp - Document actions
PluginDefinition.cpp - Selection actions
PluginDefinition.cpp - Plugin API
PluginInterface.h - Plugin definitions
PluginDefinition.h - Plugin resources
resource1.h
Encryption
- Blowfish cipher
blowfish.cpp - Cipher interface
blowfish.h
Editor interface
- Scintilla interface
Scintilla.h - Notepad++ messages
Notepad_plus_msgs.h - Position types
Sci_Position.h
Docking dialogs
- Docking interface
DockingFeature/DockingDlgInterface.h - Docking types
DockingFeature/Docking.h - Static dialog
DockingFeature/StaticDialog.cpp - Dialog interface
DockingFeature/StaticDialog.h - Window base
DockingFeature/Window.h - Dock resources
DockingFeature/dockingResource.h
Other components
- Notepad++ user
- Notepad++
Connections 16
- Notepad++ user → Notepad++: uses
README.md - Notepad++ → Plugin API: loads plugin
- Plugin API → Plugin commands: dispatches commands
- Plugin commands → Document actions: offers document actions
PluginDefinition.cpp - Plugin commands → Selection actions: offers selection actions
PluginDefinition.cpp - Document actions → Blowfish cipher: encrypts documents
- Selection actions → Blowfish cipher: encrypts selections
- Plugin definitions → Cipher interface: includes cipher API
PluginDefinition.h - Plugin API → Scintilla interface: includes editor API
PluginInterface.h - Plugin API → Notepad++ messages: includes message API
PluginInterface.h - Scintilla interface → Position types: includes position types
Scintilla.h - Docking interface → Docking types: uses docking types
DockingFeature/DockingDlgInterface.h - Docking interface → Dialog interface: inherits dialog
DockingFeature/DockingDlgInterface.h - Docking interface → Dock resources: includes resources
DockingFeature/DockingDlgInterface.h - Dialog interface → Window base: inherits window
DockingFeature/StaticDialog.h - Static dialog → Dialog interface: implements
DockingFeature/StaticDialog.cpp