Built a fast, multi-threaded file encryption tool in C++
Nexcrypt encrypts files and entire directories using modern cryptography, while processing multiple files in parallel.
🚀 203 MB/s
📁 6.27 GB encrypted in 31 seconds
💻 Linux + Windows binaries available
Still improving it in my free time, but it's ready to use.
Try it and let me know how fast it runs on your machine. Feedback is welcome.
PS. Wanted to build this mainly to learn and get hands-on with multi-threading, file I/O, memory management and cryptography.
Github 🔗👇
The biggest lie in C++ is std::move
It doesn’t move a single byte of memory
Here’s how I finally understood copy, references and move semantics using real-world analogies. Hope it helps you too
1
228
Historically, code intelligence was a nightmare.
If you wanted features like autocomplete or error checking, developers had to rewrite the exact same code analysis tools over and over again for every different editor on the market. It was an absolute mess to maintain.
Then came the Language Server Protocol (LSP).
Now, language creators write one universal "Language Server" (like rust-analyzer or gopls), and editor creators write one client.
When you open a project in editors like @code ,or @zeddotdev, etc they spin up this service locally on the machine.
It indexes your entire codebase including node_modules, venv, or hidden dependencies and builds a massive map of how everything connects.
So when you hover for docs, look at error squiggles, or Ctrl + Click into a library, your editor is just querying that local background brain.
1
156
The reason starts with how memory is addressed...
Memory is byte-addressable.
Basically, the CPU doesn't normally get an address for an individual bit. It gets an address for a byte.
So even though "true"/"false" only needs 1 bit, a normal variable gets at least a byte of storage.
But here's where it gets interesting...
You can pack booleans into individual bits.
The reason we don't do that for every "bool" is that accessing an individual bit is more work.
The CPU has to get the byte containing that bit and then extract it using masking, shifting, etc.
And modern CPUs are insanely fast.
So we're often willing to spend those extra 7 bits to keep access simple and fast.
But then I found out something cool in C++:
"std::vector<bool>" actually does bit-packing.
So:
bool arr[100];
typically takes 100 bytes.
While:
std::vector<bool> v(100);
can store those 100 values in roughly 13 bytes.
That's a pretty crazy difference once you're storing millions of flags.
So those 7 bits aren't necessarily "wasted."
You're trading memory for simpler access.
1
165
Was working on a custom encryption/decryption tool for myself and dug into the C++17 <filesystem> library to handle the file inputs.
And honestly, it made the whole workflow so clean.
I needed a way for the tool to scan a folder, grab all the target files, encrypt them, and swap their extensions to something like .nex
With <filesystem>, it was just a few lines of code.
fs::recursive_directory_iterator handled digging through subfolders, and
.replace_extension() took care of the renaming instantly.
But it made me stop and wonder... how did devs actually pull this off before C++17?
I looked into it. Before it became a standard feature, C++ had zero native way to talk to your hard drive's folders.
If you wanted your encryption tool to run on both Windows and Linux, you had to write the file-hunting logic twice.
You either had to mess with raw Windows APIs (FindFirstFile) and POSIX code (opendir), or bloat your project by installing massive external libraries like Boost.
Basic things we take for granted now like using a simple / operator to join paths without worrying if the OS uses a backslash or a forward slash used to require tedious string manipulation.
It’s nice when the language lets you actually focus on building your tool and writing the logic.
132
Say you have 4 projects.
All four use:
typescript
react
eslint
zod
With npm, each project gets its own node_modules tree.
With pnpm, each project still gets its own dependencies but the actual package contents can be shared through pnpm's store.
That distinction is huge.
But that doesn't mean install express once and every project automatically has express
You still run:
pnpm add express
in every project that needs it
The difference is that pnpm doesn't need to keep four independent physical copies of identical package contents around.
This results in ->
Less disk.
Less downloading.
Less copying.
1
1
71
Hardware cost and accessibility remain the central bottleneck for truly widespread personal use of capable open models. Quantization & software optimisations helps but meaningful progress for avg users depends on cheaper high-performance chips & better on device NPUs...
For my first post, I’m sharing a letter @NVIDIA signed on why open models matter.
AI will transform every industry, power every company, and be built by every country.
Open models strengthen safety and cybersecurity, accelerate innovation and diffusion, and enable sovereignty.
The world needs both frontier closed models and frontier open models.
images.nvidia.com/pdf/Open-W…
1
126
Leaving Lords with their highest ODI scores. What an absolute class of cricket shown by these two greats. Rohit made my day... a much-awaited century and that too in this kind of situation. Well, this match was long gone with the way our bowling looked... absolutely terrible.
1
2
144










