Encrypt and Decrypt file using RIJNDAEL-128

Hi All,

Can I use MCRYPT - (RIJNDAEL-128) / CBC mode to encrypt and decrypt a file?

I am trying to find some sample C program on internet, which will encrypt and decrypt a file. But was not able to find any thing.

Can some help me with the programming.

Thanks.

They call it AES now.

Encryption:

openssl aes-128-cbc -in top-secret-cotton-candy-plans.txt -out message.enc

Decryption:

openssl aes-128-cbc -d -in message.enc -out totally-not-suspicious-file.txt