When you want to encrypt data you may face a problem: how to encrypt a file or a data stream that doesn't fit in memory?
You could split it into small chunks and encrypt each fragment individually. Unfortunately, this is not as simple.
An attacker could modify or reorder the chunks making the decryption impossible.
Here is a guide on how to encrypt (large) files in Rust https://kerkour.com/rust-file-encryption/
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!