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...
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.
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.
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.
Try to put in some effort into your submission.
C++ compiled with G++
You'll need this file in the same directory as the EXE:
I can't wait to see what you can make up!
Go compile them yourself. EXEs are banned.
g++ name.cpp -o name.exe