RSSAmplifier

Blog

Mario Savarese

blog.mariosavarese.com RSS feed

blog.mariosavarese.comRSS feed ↗2 posts

Latest posts

17 rows is not 17 rows

If you've ever worked with Postgres, chances are you've had to debug a slow SQL query. The EXPLAIN command is usually the first port of call: it prints out the query plan that the database engine is going to execute. Paired with ANALYZE , it runs the query and updates the statistics. It's a powerful tool, but it's easy to get lost in the output when the query is very complex.…

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…