public static string GetPassword(string pass) => StringCipher.Decrypt(pass, KEY);
コード例 #2
0
 /// <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;
 }