Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- #include <time.h>
- /*
- Key Generator
- Coded By lechienkitu
- ... [ OpenSource ] ...
- */
- int main(void)
- {
- char nick[30];
- char key[41];
- char endkey[] = "-EEFJKJ";
- char c;
- int i;
- srand(time(NULL));
- c = (rand() % (90 - 65 + 1)) + 65;
- puts("Enter name: ");
- fgets(nick, 30, stdin);
- key[0] = nick[0];
- key[1] = 'Z';
- key[2] = '3';
- for(i=3;i<=33;i++)
- key[i] = c;
- strcat(key, endkey);
- printf("Serial: %s\n",key);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement