Hello everyone,
I'm thrilled to share the release of
Archive—a comprehensive compression and archiving library for Ring!
Powered by the battle-tested `
libarchive`, Archive gives you a robust solution for managing compressed files. Whether you need simple file extraction or complex, encrypted backups, this library handles it all seamlessly across Windows, Linux, macOS and FreeBSD.
Key Features:- Universal Formats: Read/Write TAR, ZIP, 7-Zip, CPIO, ISO9660, and more.
- Compression Power: Full support for GZIP, BZIP2, XZ, ZSTD, and LZ4.
- Strong Encryption: Create secure archives using AES-256 encryption.
- Dual API: Use simple helpers like `archive_extract()` or the full OOP interface for granular control.
Code Example:load "archive.ring"
# 1. Simple Creation & Extraction
archive_create("backup.tar.gz", ["docs/", "image.png"],
ARCHIVE_FORMAT_TAR, ARCHIVE_COMPRESSION_GZIP)
archive_extract("backup.tar.gz", "output_folder/")
# 2. Reading Secure/Encrypted ZIPs (OOP)
reader = new ArchiveReader(NULL)
reader.addPassphrase("secret123")
reader.open("secure_data.zip")
while reader.nextEntry()
? "Found encrypted file: " + reader.entryPath()
end
Installation (RingPM):ringpm install archive from ysdragonLearn More:If you find the library useful, please leave a star on GitHub! ⭐
Contributions and feedback are always welcome!
Best regards,
Youssef