static MyAnalyticsTracker()
        {
            var hashKey = new byte[64]; // SHA key, not used for any security, just hashing of user id
            string userId;
            using (HMACSHA1 shaCoder = new HMACSHA1(hashKey))
            {
                userId = BitConverter.ToString(shaCoder.ComputeHash(BitConverter.GetBytes(Sync.MyId)));
            }

            m_requiredData = new CommonRequiredData()
            {
                user_id = userId,
                session_id = Guid.NewGuid().ToString(),
                build = string.Format("{0}_{1}", MyFinalBuildConstants.APP_VERSION_STRING, MyFinalBuildConstants.IS_OFFICIAL ? BranchName : "VS"),
            };
        }
Ejemplo n.º 2
0
        static MyAnalyticsTracker()
        {
            var    hashKey = new byte[64]; // SHA key, not used for any security, just hashing of user id
            string userId;

            using (HMACSHA1 shaCoder = new HMACSHA1(hashKey))
            {
                userId = BitConverter.ToString(shaCoder.ComputeHash(BitConverter.GetBytes(Sync.MyId)));
            }

            m_requiredData = new CommonRequiredData()
            {
                user_id    = userId,
                session_id = Guid.NewGuid().ToString(),
                build      = string.Format("{0}_{1}", MyFinalBuildConstants.APP_VERSION_STRING, MyFinalBuildConstants.IS_OFFICIAL ? BranchName : "VS"),
            };
        }