jexiar

MetaX keygen

Nov 2nd, 2011
2,623
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.03 KB | None | 0 0
  1. #include <string>
  2. #include <iostream>
  3.  
  4. using namespace std;
  5.  
  6. void main ()
  7. {
  8.     system ("cls");
  9.     cout << "MetaX v2.16 registration key generator by jexiar"<<endl;
  10.  
  11.     string userName = "";
  12.     string regKey = "";
  13.  
  14.     string secretKey = "IhAtEToHaVeToDoT";
  15.     string padKey = "abcdefghijklmnopqrstuvwxyz0246813579ABCDEFGHIJKLMNOPQRSTUVWXYZ";
  16.  
  17.     for (register int counter = 0; ;counter ++)
  18.     {
  19.         cout << "\nType user name here or 'quit' to quit:\n";
  20.         cin >> userName;
  21.  
  22.         if (userName == "quit")
  23.             break;
  24.        
  25.         do
  26.             userName += userName;
  27.         while (userName.length () < 16);
  28.  
  29.         userName = userName.substr (0, 16);
  30.  
  31.         for (register int index = 0; index < 16; index ++)
  32.         {
  33.             if (padKey.find (userName [index], 0) == -1)
  34.             {
  35.                 userName [index] = 'z';
  36.             }
  37.             int num = padKey.find (userName [index], 0) + padKey.find (secretKey [index], 0);
  38.             if (num >= padKey.length ())
  39.             {
  40.                 num -= padKey.length ();
  41.             }
  42.             regKey.append (1, padKey [num]);
  43.         }
  44.         cout << regKey << endl;
  45.         regKey = "";
  46.     }
  47.     system ("pause");
  48.     return;
  49. }
  50.  
Advertisement
Add Comment
Please, Sign In to add comment