srcguard
v1.0.12
Published
A simple tool to protect your source code from unauthorized sharing
Downloads
16
Maintainers
Readme
srcguard
Installation
npm install -g srcguardUsage
Initialize in your project
srcguard initThis creates a unique license key for your project and sets up auto-protection for your code.
Important: The generated license.key file contains your encryption key. Keep it secure and don't commit it to your repository.
Lock your code
srcguard lockThis encrypts all your source files and replaces them with placeholders. Your original code is safely stored in the .srcguard directory.
Unlock your code
srcguard unlockYou'll be prompted for your license key. Enter it to restore all your original files.
How It Works
srcguard uses strong encryption to protect your intellectual property:
- Initialization: Generates a unique key and sets up Git hooks for auto-protection
- Locking: Encrypts your files and stores them in a hidden directory
- Unlocking: Requires the correct license key to restore files
- Auto-Protection: Automatically locks your code before commits/pushes
Features
- ✅ Strong AES-256 encryption protects your intellectual property
- ✅ Git integration automatically secures your code before sharing
- ✅ Simple key-based access for authorized developers
- ✅ Minimal dependencies for better security and performance
- ✅ Easy setup with just a few commands
Security Notes
- The
.srcguarddirectory contains encrypted versions of your files - do not delete it - Keep your
license.keyfile secure and don't share it with unauthorized users - srcguard adds the license file to
.gitignoreautomatically
Common Issues
Q: I lost my license key. Can I recover my code?
A: Without the license key, your files cannot be decrypted. Always keep a backup of your license key in a secure location.
Q: Will this work with any programming language?
A: Yes, srcguard works with any text-based source files, regardless of programming language.
License
MIT © [Titsou]
