DllTool.cs 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using System;
  2. using UnityEngine;
  3. namespace HybridCLR.Editor
  4. {
  5. public class DllTool
  6. {
  7. private static byte[] keyRqust = new byte[]
  8. {
  9. 199, 65, 209, 163, 129, 213, 106, 251, 151, 26, 17, 175, 229, 12,
  10. 152, 35, 144, 156, 215, 36, 190, 186, 114, 60, 183, 207, 84, 171,
  11. 1, 191, 115, 169, 201, 20, 230, 82, 91, 220, 208, 202, 149, 42, 128,
  12. 70, 205, 62, 24, 222, 195, 76, 188, 120, 48, 238, 179, 19, 6, 187, 125,
  13. 40, 146, 109, 185, 37, 102, 59, 200, 174, 253, 157, 247, 145, 105, 165,
  14. 137, 176, 194, 136, 197, 166, 160, 168, 237, 143, 164, 97, 235, 53, 231,
  15. 224, 11, 236, 139, 107, 116, 140, 92, 162, 173, 39, 14, 181, 167, 80, 46,
  16. 89, 178, 52, 79, 142, 85, 43, 158, 121, 87, 78, 61, 16, 198, 214, 58, 4, 193,
  17. 132, 29, 51, 50, 245, 180, 81, 155, 177, 13, 18, 223, 63, 21, 204, 101, 227,
  18. 25, 138, 55, 32, 8, 226, 10, 100, 254, 252, 216, 67, 99, 108, 141, 249, 250,
  19. 47, 75, 210, 211, 124, 27, 22, 153, 233, 83, 23, 242, 172, 88, 57, 77, 95, 41,
  20. 133, 9, 44, 118, 221, 154, 72, 234, 33, 56, 184, 130, 127, 148, 170, 203, 243,
  21. 150, 228, 110, 66, 74, 86, 64, 45, 94, 239, 225, 206, 31, 28, 5, 113, 241, 30,
  22. 244, 248, 196, 69, 7, 212, 232, 54, 0, 126, 122, 96, 112, 117, 217, 34, 123,
  23. 192, 49, 161, 135, 73, 134, 103, 90, 240, 2, 219, 38, 119, 182, 246, 159, 189,
  24. 98, 131, 15, 104, 71, 3, 147, 111, 218, 93, 68,255
  25. };
  26. public static byte[] KeyEncryption(byte[] data)
  27. {
  28. return data;
  29. Debug.Log(keyRqust.Length);
  30. byte[] keyData = new byte[data.Length];
  31. for (int i = 0; i < data.Length; i++)
  32. {
  33. keyData[i] = keyRqust[data[i]];
  34. }
  35. return keyData;
  36. }
  37. }
  38. }