Last active
November 30, 2015 14:00
-
-
Save OsandaMalith/9efc39173b528cbef43c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
int main() { | |
char name[61]; | |
size_t i = 0; | |
int Char; | |
int Xor; | |
int total; | |
int sum; | |
puts( | |
"\t\t| Keygenning4newbies CrackMe1\n" | |
"\t\t| KeyGen coded by @OsandaMalith\n" | |
"\t\t| http://osandamalith.wordpress.com\n" | |
); | |
printf("Enter Name: "); | |
fgets(name,60,stdin); | |
if(strlen(name)-1 <= 3 || strlen(name)-1 >= 50) { | |
fprintf(stderr,"%s","Name should be between 3 to 50 characters."); | |
exit(-1); | |
} | |
while(i < strlen(name) - 1) { | |
Char = name[i++]; | |
Xor = Char ^ i; | |
total += Xor; | |
} | |
sum = (total << 7) + 6 * Xor; | |
printf("Serial: %X",sum); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment