home *** CD-ROM | disk | FTP | other *** search
- #include <stdio.h>
-
- void main()
- {
- // last longint MUST be = 0xa9b8c3d0
- unsigned long int code[4] = {0x01234567, 0x89abcdef, 0x01234567, 0xa9b8c3d0};
- int i;
- char buf[50];
- char *pb = buf;
- char ch1;
-
- code[3] ^= code[2];
-
- code[3] ^= code[1];
- code[2] ^= code[1];
-
- code[3] ^= code[0];
- code[2] ^= code[0];
- code[1] ^= code[0];
-
- for (i=0; i<4; i++) {
- code[i] ^= 0xa9b8c3d0;
- sprintf(pb, "%08lX", code[i]);
- pb += 8;
- }
- for (i=0; i<32; i++) {
- ch1 = buf[i] - '0';
- if (ch1 > 9)
- ch1 -= 'A' - '9' - 1;
- buf[i] = ch1 + 0x45;
- }
-
- printf("%s\n", buf);
- }