Ejemplo n.º 1
0
        private byte[] ImportPasswordProtectedKey()
        {
            byte[] key = null;

            ImportPassword form   = new ImportPassword();
            DialogResult   result = form.ShowDialog();

            if (result == DialogResult.OK)
            {
                string destinationFileName = txtDestination.Text;
                string password            = form.Password;

                key = ImportKeyFromFile(destinationFileName, password);
            }

            return(key);
        }
Ejemplo n.º 2
0
        private byte[] ImportPasswordProtectedKey()
        {
            byte[] key = null;

            ImportPassword form = new ImportPassword();
            DialogResult result = form.ShowDialog();
            if (result == DialogResult.OK)
            {
                string destinationFileName = txtDestination.Text;
                string password = form.Password;

                key = ImportKeyFromFile(destinationFileName, password);
            }

            return key;
        }