Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <string>
- #include <iostream>
- using namespace std;
- void main ()
- {
- system ("cls");
- cout << "MetaX v2.16 registration key generator by jexiar"<<endl;
- string userName = "";
- string regKey = "";
- string secretKey = "IhAtEToHaVeToDoT";
- string padKey = "abcdefghijklmnopqrstuvwxyz0246813579ABCDEFGHIJKLMNOPQRSTUVWXYZ";
- for (register int counter = 0; ;counter ++)
- {
- cout << "\nType user name here or 'quit' to quit:\n";
- cin >> userName;
- if (userName == "quit")
- break;
- do
- userName += userName;
- while (userName.length () < 16);
- userName = userName.substr (0, 16);
- for (register int index = 0; index < 16; index ++)
- {
- if (padKey.find (userName [index], 0) == -1)
- {
- userName [index] = 'z';
- }
- int num = padKey.find (userName [index], 0) + padKey.find (secretKey [index], 0);
- if (num >= padKey.length ())
- {
- num -= padKey.length ();
- }
- regKey.append (1, padKey [num]);
- }
- cout << regKey << endl;
- regKey = "";
- }
- system ("pause");
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment