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);

            }
        }
Esempio n. 2
0
 public FrmLogin()
 {
     InitializeComponent();
     _userConfig = new userConfigUtils.userConfig();
 }