Home

How to encrypt a file using AES in 256-bit CBC/CTR mode using OpenSSL in C

I’ve been using OpenSSL a LOT for work lately and I’ve learned some interesting stuff. Here’s a quick guide on how to encrypt and decrypt files using AES in CBC or CTR mode using 256 bit keys and 128 bits IVs. To do this, I used the EVP API in OpenSSL, which allows you to easily encrypt a file using any cipher of your liking. I am assuming so...

Read more