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