Insecurely encrypting images with Rust

This article demonstrates how a block encryption cipher can still be insecure if it uses an insecure mode of operation. It includes a simple Rust program that encrypts PPM images using the AES block cipher with different modes of operation. A primer on encryption In the simplest possible terms, encryption is achieved by taking an input (in our case an image), applying some operations to it, and…