A secure and user-friendly command-line tool for creating and extracting encrypted archives with multiple format support.
DynamicArchive is a powerful bash script that provides a menu-driven interface for creating and extracting encrypted archives. It supports multiple archive formats (TAR, ZIP, 7Z, GZ) with GPG encryption using AES-256, ensuring your data remains secure.
- 🔐 Military-grade encryption using GPG with AES-256
- 📦 Multiple format support: TAR, ZIP, 7Z, and GZ
- 🎨 Intuitive UI with color-coded menus and visual feedback
- ⚡ Fast processing with progress indicators
- 🔍 Archive information display without full decryption
- ✅ File validation and overwrite protection
- 🖥️ Cross-platform compatibility (Linux, macOS with dependencies)
-
Download the script:
git clone https://github.com/ricalnet/DynamicArchive.git
-
Make it executable:
chmod +x dynamic-archive.sh
-
Ensure you have the following packages installed:
sudo ./requirements.sh
-
Run the script:
./dynamic-archive.sh
- Launch the script:
./dynamic-archive.sh - Select an operation from the menu (1-9)
- Follow the prompts to provide input/output filenames
- Enter your encryption passphrase when prompted
-
Create an encrypted TAR archive:
- Select option 1
- Enter folder path:
/home/user/documents - Enter output filename:
backup - Result:
backup.tar.gpg
-
Extract an encrypted ZIP archive:
- Select option 4
- Enter input filename:
data.zip.gpg - Files will be extracted to current directory
-
View archive information:
- Select option 9
- Enter archive path:
archive.tar.gpg - View details without decrypting fully
- AES-256 encryption algorithm
- Secure passphrase handling
- Temporary file cleanup
- File validation before processing
- Overwrite confirmation prompts
Q: Is my passphrase stored anywhere?
A: No, your passphrase is only used during the encryption/decryption process and is not stored.
Q: Can I use this on macOS?
A: Yes, but you'll need to install the prerequisites using Homebrew: brew install gpg zip p7zip
Q: What if I forget my passphrase?
A: Unfortunately, without the passphrase, your encrypted data cannot be recovered. Always keep your passphrase secure.
Q: Can I encrypt individual files?
A: Currently, the tool only supports encrypting folders. You can place individual files in a folder first.
Error: "Missing required packages"
Solution: Install the missing packages listed in the error message.
Error: "Decryption failed"
Solution: Check that you're using the correct passphrase and that the file wasn't corrupted.
Error: "Invalid filename"
Solution: Use only alphanumeric characters, periods, hyphens, and underscores in filenames.
This project is licensed under the MIT License - see the LICENSE file for details.
Disclaimer: Always keep backups of your important data and test encryption/decryption processes with non-critical files first. The authors are not responsible for data loss.