Ejemplo n.º 1
0
        private static string CreateSessionToken(string apiKey, int appId, string userId, long time)
        {
            string text = SwrveHelper.ApplyMD5(string.Format("{0}{1}{2}", userId, time, apiKey));

            return(string.Format("{0}={1}={2}={3}", new object[]
            {
                appId,
                userId,
                time,
                text
            }));
        }
        protected static string CreateSessionToken(string apiKey, int appId, string userId, long time)
        {
            var md5Hash = SwrveHelper.ApplyMD5(String.Format("{0}{1}{2}", userId, time, apiKey));

            return(String.Format("{0}={1}={2}={3}", appId, userId, time, md5Hash));
        }
Ejemplo n.º 3
0
        private static string CreateSessionToken(string apiKey, int appId, string userId, long time)
        {
            string text = SwrveHelper.ApplyMD5($"{userId}{time}{apiKey}");

            return($"{appId}={userId}={time}={text}");
        }