How mohit-hasan/crypt-php works
CryptPHP is a desktop PHP protection tool. The user selects project files and protection settings in the GUI, then starts a build that stages the project, applies optional YakPro obfuscation and Layer-2 encoding, merges seed files, and packages protected archives. The implementation excerpt shows build orchestration and seed merging; the README documents the major protection and packaging capabilities. Some stage-to-stage implementation details are unsampled, so those relationships are shown only where documented.
Main entry points: CryptPHP.cpp Build orchestrator · main.cpp Desktop GUI · ResourceManager.cpp Embedded resources · CryptPHP.h Build settings
Components 13
Desktop interface
- Desktop GUI
src/main.cpp - Project selection
src/main.cpp - Build settings
src/CryptPHP.h
Protection workflow
- Build orchestrator
src/CryptPHP.cpp - Project staging
src/CryptPHP.cpp - YakPro obfuscation
src/CryptPHP.cpp - Layer-2 encoding
src/CryptPHP.cpp - Seed injection
src/CryptPHP.cpp
Resources and outputs
- Embedded resources
src/ResourceManager.cpp - Embedded payload
src/EmbeddedResources.h - File operations
src/FileUtil.cpp - Protected ZIPs
Other components
- Project maintainer
Connections 13
- Project maintainer → Desktop GUI: configures project
README.md - Desktop GUI → Project selection: selects files
README.md - Desktop GUI → Build settings: sets options
src/main.cpp - Desktop GUI → Build orchestrator: starts build
src/main.cpp - Build orchestrator → Project staging: stages project
src/CryptPHP.cpp - Build orchestrator → YakPro obfuscation: obfuscates files
README.md - Build orchestrator → Layer-2 encoding: encodes files
README.md - Build orchestrator → Seed injection: merges seeds
src/CryptPHP.cpp - Build orchestrator → Embedded resources: extracts resources
- Embedded resources → Embedded payload: reads payload
src/ResourceManager.cpp - Build orchestrator → File operations: uses file helpers
src/CryptPHP.cpp - Build orchestrator → Protected ZIPs: packages builds
README.md - Project maintainer → Protected ZIPs: deploys output
README.md