private static string EncryptProjectKey(string projectKey)
        {
            string encryptedKey = ToastAES.AESEncrypt256(projectKey, ToastApplicationInfo.GetEncrypKey());

#if UNITY_2017_3_OR_NEWER
            return(UnityEngine.Networking.UnityWebRequest.EscapeURL(encryptedKey));
#else
            return(WWW.EscapeURL(encryptedKey));
#endif
        }
        private static void SetCommonData(LogObject logObject, string loggerType)
        {
            logObject.Put(LogFields.PROJECT_VERSION, Application.version);
            logObject.Put(LogFields.DEVICE_ID, ToastDeviceInfo.GetDeviceUniqueIdentifier());
            logObject.Put(LogFields.PLATFORM_NAME, ToastApplicationInfo.GetPlatformName());
            logObject.Put(LogFields.LAUNCHED_ID, ToastApplicationInfo.GetLaunchedId());
            logObject.Put(LogFields.SDK_VERSION, ToastApplicationInfo.GetSDKVersion());

            foreach (var item in Fields)
            {
                logObject.SetUserField(item.Key, item.Value);
            }
        }
 private static string DecryptBulkLog(string encryptedTxt)
 {
     return(ToastAES.AESDecrypt256(encryptedTxt, ToastApplicationInfo.GetEncrypKey()));
 }
 private static string EncryptBulkLog(string planeTxt)
 {
     return(ToastAES.AESEncrypt256(planeTxt, ToastApplicationInfo.GetEncrypKey()));
 }