public static string GetPassword(string pass) => StringCipher.Decrypt(pass, KEY);
/// <summary> /// Get User info from token. Token, which recieved from Izenda, will be decrypted to get user info. /// </summary> public static UserInfo GetUserInfo(string token) { var serializedObject = StringCipher.Decrypt(token, KEY); var user = Newtonsoft.Json.JsonConvert.DeserializeObject<UserInfo>(serializedObject); return user; }