Python File Protector is a robust security application designed to safeguard your Python source code files (.py) through advanced encryption and access control mechanisms. This tool provides multiple layers of protection to prevent unauthorized access, modification, or theft of your intellectual property.
- Military-grade AES-256 encryption for file protection
- Password-based access control with configurable complexity requirements
- File integrity verification using SHA-256 hashing
- Multi-platform compatibility (Windows, macOS, Linux)
- Secure deletion of original files after encryption
- Tamper-evident design that detects modification attempts
- OS: Windows 7/10/11, macOS 10.15+, or Linux with GTK
- Processor: 1.5 GHz dual-core
- Memory: 2 GB RAM
- Storage: 50 MB available space
- Python: 3.8+ (bundled in executable version)
- OS: Windows 10/11, macOS 12+, or Ubuntu 20.04+
- Processor: 2.4 GHz quad-core
- Memory: 4 GB RAM
- Storage: 100 MB SSD
- Python: 3.10+ (for source version)
- Executable Version: Double-click
protector.exe
(Windows) orprotector.app
(macOS) - Source Version: Run
python protector.py
in terminal
- Click Browse to select a Python file (.py)
- Supported file indicators:
- ✅ Valid Python files show green highlight
- ❌ Invalid files show red warning
- File details panel displays:
- File size
- Last modified date
- Line count estimate
- SHA-256 checksum
# Sample encryption configuration
config = {
"algorithm": "AES-256-CBC",
"key_derivation": "PBKDF2-HMAC-SHA256",
"iterations": 100000,
"salt_size": 16,
"iv_size": 16,
"block_size": 64
}
-
Select encryption strength:
- Standard (AES-128)
- Strong (AES-256) - Recommended
- Maximum (AES-256 with double encryption)
-
Set password requirements:
- Minimum 12 characters
- Require mixed case
- Require numbers/symbols
-
Advanced options:
- Shred original file (7-pass DoD standard)
- Add digital signature
- Create recovery certificate
-
Click Lock to encrypt
- Select encrypted file (.pye extension)
- Enter password (show/hide toggle available)
- Options:
- Restore to original location
- Save to new location
- Verify file integrity before opening
- Click Unlock to decrypt
Version | Feature Highlights | Duration | Resolution | Link |
---|---|---|---|---|
v1.0 Basic | Basic encryption/decryption | ? | 720p | Watch |
v2.0 Pro | Advanced security features | ? | 720p | Watch |
graph TD
A[Original .py File] --> B[Compress]
B --> C[Generate Random Salt]
C --> D[Derive Encryption Key]
D --> E[Generate IV]
E --> F[Encrypt Data]
F --> G[Add HMAC Signature]
G --> H[Create .pye File]
Offset | Length | Description |
---|---|---|
0x00 | 8 | Magic Number 'PYPROTEC' |
0x08 | 4 | Version Number |
0x0C | 16 | Salt |
0x1C | 16 | Initialization Vector |
0x2C | 4 | Original File Size |
0x30 | 32 | SHA-256 of Original |
0x50 | N | Encrypted Data |
EOF-32 | 32 | HMAC Signature |
Q: Can I recover files if I forget my password?
A: No, the encryption is designed to be irreversible without the password. We recommend using our password hint system or storing recovery keys securely.
Q: How does this compare to pyc compilation?
A: Unlike pyc files which can be decompiled, our encryption provides true security. See our benchmark:
Method | Decompilation Risk | Size Overhead | Performance Impact |
---|---|---|---|
.pyc | High | 0% | None |
.pye | Impossible | 15-20% | <5% decryption time |
Q: Can I automate this in CI/CD pipelines?
A: Yes! Use our command-line interface:
python protector.py --lock --input script.py --output secured.pye --pass "YourStrongPassword"
# UI Framework using PyQt6
class MainWindow(QMainWindow):
def __init__(self):
super().__init__()
self.setWindowTitle("Python File Protector v2.1")
self.setWindowIcon(QIcon("roy.ico"))
self.setGeometry(100, 100, 800, 600)
# Dark theme by default
self.setStyleSheet("""
QMainWindow {
background-color: #2d2d2d;
color: #ffffff;
}
QPushButton {
background-color: #3a3a3a;
border: 1px solid #444;
padding: 5px;
}
""")
self.init_ui()
Feature | Free Version | Pro Version | Enterprise Version |
---|---|---|---|
Basic Encryption | ✅ | ✅ | ✅ |
Advanced Algorithms | ✅ | ✅ | ✅ |
Batch Processing | ✅ | ✅ | Unlimited |
Cloud Backup | ✅ | ✅ | ✅ |
API Access | ✅ | ✅ | ✅ |
Priority Support | ✅ | ✅ | ✅ |
For technical support or enterprise licensing:
- Email: dwibakti76@gmail.com
- Phone: 089652969323
- Developers: Dwi Bakti N Dev
For community support:
- GitHub Discussions
- Stack Overflow (#python-file-protector)
- Discord Community
- Google I/O
This documentation is continuously updated. Always check our official website for the latest version.