From the course: Symmetric Cryptography Essential Training

Unlock this course with a free trial

Join today to access over 25,600 courses taught by industry experts.

AES and DES in practice

AES and DES in practice

- [Instructor] I want to take a moment now to actually use AES and DES to do some encryption. I'm doing this from the command line using the OpenSSL library, which is available on most platforms and makes using these algorithms very convenient. All of the commands I use are available in the exercise files if you'd like to refer back to them later. I'm going to start by encrypting an existing one-gigabyte file with DES. In this video, I use the time command in conjunction with openssl to measure how long each of these instructions take. I have this initialization vector, which is used to set up the initial state of the algorithm, that I had prepared earlier, just a random value, and a random 56-bit key that I also prepared earlier. I'm using this input file called demo1G.bin. It gets cut off here a bit. And for the output, my ciphertext, I'm going to store it in demo1G.bin.des. So, we see this took about 13 seconds to complete. Now let's decrypt this file. This is basically the same…

Contents