From the course: Symmetric Cryptography Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

AES and DES in practice

AES and DES in practice

From the course: Symmetric Cryptography Essential Training

Start my 1-month free trial

AES and DES in practice

- [Instructor] So I wanna take a moment now to use AES and DES to do some encryption. I'm doing this from the command line using the open SSL library, which makes using these algorithms very convenient. I'm gonna start by encrypting a one gigabyte file with DES. I'm using the time command here in conjunction with open SSL so that we can measure how long these take. I'm pasting in an initialization factor that I had prepared earlier, just a random value. And a 56-bit key that I prepared earlier. I'm gonna use this input file that's one gigabyte called demo 1 G dot bin. And my ciphertext I'm gonna put into demo 1 G dot bin dot d e s. So we see this took about 16 seconds to complete. Now lets decrypt this file. I'm going to use the same command, but I want my output file to be called dot decrypt d e s. And my input file is going to be the ciphertext. So this is gonna be demo 1 G dot bin dot d e s. Then I need to go back and make sure that I'm going to decrypt mode, dash d here. The…

Contents