pcb5rk.c

来自「破解很多程序的序列号算法程序」· C语言 代码 · 共 30 行

C
30
字号
#include <stdio.h>

int main()
{
	unsigned char name[80], ch;
	int i, len;
	short int wkey = 0x3a97;
	long lkey = 0x29a;

	printf("PC Baby v5.0 Registration Key generator\n");
	printf("Enter the name that will appear on your registration\n>");
	gets(name);

	len = strlen(name);
	for (i=0; i < len; i++) {
		ch = name[i] ^ (wkey >> 8);
		wkey += ch;
		wkey = wkey * 0xce6d + 0x58bf;
		lkey += ch * (i + 1);
	}

	printf("\nName\t\t   : %s\n", name);
	printf("Registration Code  : %d\n", lkey);

	printf("\nEnter the above information into your PC Baby 98 Registration\n");
	printf("dialog located in 'Help' menu.\n");
	printf("NOTE: the name is case-sensitive\n");

	return 0;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?