using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DecryptPwd.Utils { public class WinSCP { /// /// Decrypt password /// public static string Decrypt(string password) { string result = string.Empty; try { byte[] data = Convert.FromBase64String(password); result = Encoding.UTF8.GetString(data); } catch (Exception ex) { Console.WriteLine(ex.Message); } return result; } } }