[CrackMe]160个CrackMe之19
该代码难度很低,直接IDA F5 就可以计算出来
注册机
#include<windows.h> #include <iostream> using namespace std; int main() { char name[20]; cout << "name:"; cin >> name; unsigned int v22 = strlen(name); unsigned int v25 = 0x81276345; for (int i = 0; i < v22; ++i) { char v2 = name[i]; v25 += v2; v25 ^= i << 8; v25 *= ~(i * v22) * (i + 1); } cout << "key:" << v25 << endl; }