I want you to make some obfuscated code that does one simple task: creates a password protected document. There are two ways you can do this...
Option 1:
Make your own code. The document can be about anything, but it should not be stored as a file. Instead, you type in a password into the command line and then the program checks for a file, with the name being the second password and the file's contents being the first password and the third password together. The passwords can be any length you want, but I'd recommend going for more than 16 characters. However, you can create as many password files as you can. The more, the safer. See an example of this below, using three passwords, two contained in a file.
Option 2:
If you are unsure, you can start off with my C++ example. Obfuscate it however you want, port it to whatever language you want, but keep the document, password file and command line password the same.
RULES:
In your submission, make sure to show: the original non-obfuscated source code, the obfuscated source code and two programs each compiled from the said code.
You can pick any programming language that supports reading and writing files, such as C++, Python or Java.
I want you to make some obfuscated code that does one simple task: creates a password protected document. There are two ways you can do this...
Option 1:
Make your own code. The document can be about anything, but it should not be stored as a file. Instead, you type in a password into the command line and then the program checks for a file, with the name being the second password and the file's contents being the first password and the third password together. The passwords can be any length you want, but I'd recommend going for more than 16 characters. However, you can create as many password files as you can. The more, the safer. See an example of this below, using three passwords, two contained in a file.
Option 2:
If you are unsure, you can start off with my C++ example. Obfuscate it however you want, port it to whatever language you want, but keep the document, password file and command line password the same.
RULES:
EXAMPLE:
C++ compiled with G++
non-obfuscated.cppobfuscated.cpp
You'll need this file in the same directory as the EXE:
fIYElya1HOAetOy2QI9di1Jr8FbaawFSXuNkEtYQRQ4JZLoFvbSvgNwOVbpBwAQfpoiO0ovwHZFebTgBkAw8x1bM8kbh5C9xgt1POTz1hGzLglwr8mX3DaCVIDsbGFoe.txt
I can't wait to see what you can make up!
Go compile them yourself. EXEs are banned.
g++ name.cpp -o name.exe