Advertisement
ImoogiWild

Untitled

Jun 4th, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1.  
  2. string text = null;
  3. string text2 = null;
  4. char[] array = null;
  5. long num = 0L;
  6. byte b = 0;
  7. byte b2 = 0;
  8. byte b3 = 0;
  9. byte b4 = 0;
  10. text = UserName.ToLower() + ProdName.ToLower();
  11. text2 = DigestStrToHexStr(text);
  12. array = HexStrToBinStr(text2);
  13. num = (F_Code & 0xFFFF);
  14. b = (byte)(num & 0xFF);
  15. b2 = (byte)((num & 0xFF00) / 256 & 0xFF);
  16. char c = array[array.Length - 1];
  17. char c2 = array[array.Length - 2];
  18. b3 = (byte)c;
  19. b4 = (byte)c2;
  20. b3 = (byte)(b3 ^ b);
  21. b4 = (byte)(b4 ^ b2);
  22. char c3 = (char)b3;
  23. char c4 = (char)b4;
  24. string text3 = new string(array);
  25. text3 = text3.Substring(0, array.Length - 2);
  26. text3 = text3 + c4 + c3;
  27. text3 = text3.Substring(2, text3.Length - 2);
  28. string text4 = DigestStrToHexStr(text3);
  29. string str = text4.Substring(0, 2);
  30. string str2 = text4.Substring(text4.Length - 2, 2);
  31. string str3 = BinStrToHexStr(text3);
  32. return str + str2 + str3;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement