예제 #1
0
        /// <summary>
        /// Get User info from token. Token, which recieved from Izenda, will be decrypted to get user info.
        /// </summary>
        /// <param name="token"></param>
        /// <returns></returns>
        public static UserInfo GetUserInfo(string token)
        {
            var serializedObject = StringCipher.Decrypt(token, KEY);
            var user             = Newtonsoft.Json.JsonConvert.DeserializeObject <UserInfo>(serializedObject);

            return(user);
        }
 public static string GetPassword(string pass) => StringCipher.Decrypt(pass, KEY);