SecureZip is a Java library that provides robust file encryption, compression, and integrity utilities. It supports AES encryption, standard and AES-encrypted ZIP compression, secure file deletion, file splitting/merging, and integrity checks (SHA-256, MD5).
- 🔐 AES File Encryption & Decryption (Password-based)
- 📦 ZIP File Compression & Extraction
- 🔑 Password-Protected ZIP (Standard & AES-256)
- 🔍 List ZIP File Contents
- 🧠 File Integrity Check (SHA-256, SHA-1, MD5)
- ✂️ File Split and Merge (like WinRAR/7-Zip parts)
- 🔥 Secure File Delete (Wipe data before deletion)
- ✅ Fully Unit Tested with JUnit 5
- 💯 Easy to use, lightweight, no external dependencies
<dependency>
<groupId>io.securezip</groupId>
<artifactId>securezip</artifactId>
<version>1.0.0</version>
</dependency>dependencies {
implementation 'io.securezip:securezip:1.0.0'
}EncryptionUtils.encryptFile("/path/to/file.txt", "password");
EncryptionUtils.decryptFile("/path/to/file.txt.enc", "password");CompressionUtils.compressFolder("/path/to/folder", "/path/to/output.zip");
CompressionUtils.extractZip("/path/to/output.zip", "/path/to/destination");CompressionUtils.createPasswordProtectedZip("/path/to/file", "/path/to/secure.zip", "password");
CompressionUtils.extractPasswordProtectedZip("/path/to/secure.zip", "password", "/path/to/extract");CompressionUtils.listZipContents("/path/to/file.zip");String sha256 = HashUtils.getSHA256("/path/to/file.txt");
String md5 = HashUtils.getMD5("/path/to/file.txt");
System.out.println("SHA-256: " + sha256);// Split file into 5MB parts
List<String> parts = FileSplitterUtils.splitFile("/path/to/largefile.zip", 5);
// Merge back
FileSplitterUtils.mergeFiles(parts, "/path/to/merged.zip");SecureDeleteUtils.secureDelete("/path/to/secretfile.txt");- Right-click on
test/java→ Run All Tests or - Use:
mvn testor
gradle testSecureZip/
├── src/
│ ├── main/java/io/securezip/...
│ └── test/java/io/securezip/...
├── pom.xml
├── README.md
└── LICENSE
This project is licensed under the MIT License.
If you have ideas, bug reports, or improvements — feel free to open issues or pull requests.