First, I have to clarify: I probably could have worded it better, but I was talking about assigning a block of C++ code to a function pointer to dynamically make a function that didn't actually have a name. I haven't found much info on lambda functions (but then again, I admittedly haven't checked the VC++ log, and I don't exactly trust Wikipedia), though, so I had to ask. And in regards to brewbuck's post, does it have to be machine code, or would it be possible to make an interpreter that can change C++ code into machine code dynamically, so you can use it as something of a more secure password? (After all, if you were to make a program where the log-in function had to be manually inputted for a person to log in, it'd be pretty hard for someone to crack that 'password', I'd imagine. All you'd need to do is make a few functions that check whether the inputted line is code, whether it's malicious, and whether it's in the right format (specifically, if it's in the form
(or would that be
?), and then run it when you're sure. For added security, you could design the program so that the actual variable(s) needed to store log-in information changed each day, such as by using a class to use the information, and making a new instance of the class each day (you could either design the program to email you with the new instance's name or use a set name for each day, such as
login_Mon,
login_Tues, etc.).)