From the course: Learning Assembly Language
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Reading and writing the Enigmatic configuration - Python Tutorial
From the course: Learning Assembly Language
Reading and writing the Enigmatic configuration
- [Instructor] Let's add some code to incorporate a configuration file into our enigmatic encrypter. The first thing we'll do is to add some file handling constants. Next, we'll add a handle for our configuration file, hConfig quad word initialize to zero, and that's a handle for configuration file. And while we're here, we'll put a handle in for the input file hfin dq zero handle for input file, and hfout dq zero handle for output file. And as we'll see later on, it doesn't matter whether the input and output is plain text or cipher. So we will just declare them as input and output files. We need to add a couple more messages, and also the configuration file name. We don't know what the plain text and cipher text files will be called, so we'll just set up a string buffer so we can get them from the user. We're going to want to identify the contents of our configuration data file. So let's add a string at the start…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
Adding a menu and jump table to the Enigmatic encryptor4m 55s
-
(Locked)
Reading and writing the Enigmatic configuration7m 35s
-
(Locked)
Ciphering the data7m 10s
-
(Locked)
Leveraging the x64 AES instructions6m 14s
-
(Locked)
Challenge: Decryption function46s
-
(Locked)
Solution: Decryption function1m 24s
-
-
-
-