hide_my_code 1.0.1
hide_my_code: ^1.0.1 copied to clipboard
Hide and encrypt files in your repository with password protection.
Hide My Code #
A Flutter/Dart package that allows developers to hide specific files from their repository while providing a mechanism to generate them when needed. This package provides a secure way to share code without exposing critical implementation details.
Features #
- Interactive CLI interface for hiding/revealing files
- AES-256 encryption for file protection
- Password protection using .env file
- Automatic .gitignore management
- Multi-layer encryption (source code, file content, metadata)
- File integrity verification
- Mandatory .env file requirement for security
Installation #
dart pub add hide_my_code
Or add this to your pubspec.yaml:
dependencies:
hide_my_code: ^1.0.1
Usage #
Hide Files #
dart run hide_my_code
This will launch an interactive interface that asks:
- "Hide or Visual?" - Select "Hide"
- "Enter password" - Enter a password to protect the reveal process
- "Enter file paths to hide" - Provide paths like:
lib/main.dart lib/core/utils/helper.dart
Reveal Files #
dart run hide_my_code
This will launch an interactive interface that asks:
- "Hide or Visual?" - Select "Visual"
- "Enter password" - Enter the password set during hiding
- "Select files to reveal" - Choose specific files or "all" to reveal all hidden files
Security Features #
- Mandatory .env Requirement: The package will not run without a
.envfile - Git Protection: Automatically adds hidden files to
.gitignore - Multi-Layer Encryption: Source code, file content, and metadata encryption
- Secure Password Handling: Passwords are never stored in plain text
- Integrity Verification: SHA-256 checksums for file integrity verification