예제 #1
0
        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);

            }
        }
예제 #2
0
 public FrmLogin()
 {
     InitializeComponent();
     _userConfig = new userConfigUtils.userConfig();
 }