New answers tagged

0

After for little research, I can say this extension is not safe because I can simply extract the main key in clear text format by using any type of HEX editor. Hash function is NOT important any more. Linux: Offset: 0x00003158 Using xxd Windows: Unable to compile but believe the develop team using default password 0123456789abcdef0123456789abcdef ...


2

static const is more secure, but not for the reasons you're thinking of. It permits the compiler to perform type checking, which will catch a class of bugs that #define won't permit it to catch. In regards to your specific concerns: "#define" is embedded in compiled code, while static int leaves a variable in memory, which a user can change the value ...


0

From my understanding #define will indeed replace TimeLimit with the literal 30 when the preprocessor runs. It is not clear to me what the standard states on static const variables (if anything). For instance, if the compiler supports constant folding and the variable is only used in constant expressions, the expressions are evaluated at compile time and it ...



Top 50 recent answers are included