Developer builds zero-dependency Mega.nz downloader for macOS without Java
A developer wanted to download Mega links on a Mac without installing a Java runtime, so they built MegaGet, a small Node server paired with a local web interface. The write-up explains how Mega's 32-byte file key is split to derive the AES key and nonce, which allows resuming interrupted downloads by setting the CTR counter to the byte offset divided by 16. It also describes how the chunked CBC-MAC integrity check maps onto Node's built-in aes-128-cbc, and how login's HTTP 402 Hashcash challenge is solved across four worker threads in a few seconds. The tool does not bypass Mega's transfer quota but waits and resumes when it is reached, and it is download-only. The project is MIT-licensed, has been tested mainly against a mock server, and the author is seeking real-world bug reports.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in