public static string decryptePassword() { UnicodeEncoding ByteConverter = new UnicodeEncoding(); byte[] decryptedData; userConfigUtils.userConfig userConfig = new userConfigUtils.userConfig(); userConfig = userConfigUtils.ReadConfigFile(); using (RSACryptoServiceProvider RSA = new RSACryptoServiceProvider()) { decryptedData = RSADecrypt(userConfig.userPassword, RSA.ExportParameters(true), false); return ByteConverter.GetString(decryptedData); } }
public FrmLogin() { InitializeComponent(); _userConfig = new userConfigUtils.userConfig(); }