Adaclare Xtar is a command-line tool for securely compressing and splitting .tar.gz files using AES-256 encryption. It also supports joining and decrypting split files for decompression. This tool is designed to allow efficient compression and encryption, providing the ability to split large files into smaller chunks for easier storage or transfer.
- Compress and split: Compress and split a
.tar.gzfile into smaller chunks, with optional AES-256 encryption. - Decompress and join: Join and decrypt the chunks to recover the original file.
- AES-256 encryption: Encrypt and decrypt using a secure AES-256 encryption algorithm.
- Progress indicator: Visual feedback on compression and decompression progress with a percentage and spinner.
- File splitting: Split large files based on the size limit you specify (e.g., 100MB per chunk).
- Go 1.18 or higher
- Uses standard Go libraries (
crypto/aes,crypto/cipher, etc.)
git clone https://github.com/quietvw/Xtar.git
cd Xtar
go build -o xtar xtar.goGenerate a random 128-bit (16-byte) AES key:
openssl rand -hex 16
# Example output: 3f9c2b7e8d5a1046b1e3c7f2d98a6721You can also use a 192-bit or 256-bit key (24 or 32 bytes in hex) if desired.
./xtar -c mydata.tar.gz -s 50M -e 3f9c2b7e8d5a1046b1e3c7f2d98a6721-c: Path to your.tar.gzfile-s: Maximum split size (e.g.50M)-e: (Optional) AES encryption key in hex (must be 16, 24, or 32 bytes)
Output:
🔧 Compressing mydata.tar.gz...
Compressing... | 42.13%
Compressing... / 78.99%
Compressing... - 100.00%
✅ Done.Split output files:
mydata.tar.gz.00
mydata.tar.gz.01
mydata.tar.gz.02
...
To reassemble the original file from chunks:
./xtar -d mydata.tar.gz -e 3f9c2b7e8d5a1046b1e3c7f2d98a6721-d: Base name of split files (omit the.00,.01, etc.)-e: Same key used during encryption
Output:
📦 Decompressing parts to joined_mydata.tar.gz
Decompressing... | 50.00%
Decompressing... / 85.00%
Decompressing... - 100.00%
✅ Done.Final output:
joined_mydata.tar.gz
./xtar -version
# Adaclare Xtar version 1.0.0- Use strong, secure keys (16/24/32 bytes hex format).
- Do not lose your encryption key — files encrypted with it cannot be recovered without it.
- Only
.tar.gzfiles are supported for now. - Ideal for secure cloud backup workflows, archiving logs, or sensitive data.
This project is licensed under the GNU General Public License. See the LICENSE file for details.
Adaclare Corporation
https://adaclare.com
