Classic, yet complicated!

Well, got the flag. This was easy once I figured out the correct key thanks to a hint in this thread. Still unsure how one would obtain that key without a hint, feel free to PM me if you know how to get it manually.