Exemplo n.º 1
0
        public async Task TestMethod3()
        {
            PgpKeyserverGetKey getKey = new PgpKeyserverGetKey("http://keys.gnupg.net:11371/");

            using (KeyStoreDB keyStoreDb = new KeyStoreDB()) {
                await getKey.ImportKey("0xc2109883ffb43ac1debf9a2cac6f1e84420ab7bd", keyStoreDb);
            }
        }
Exemplo n.º 2
0
        private async void btmImportSelectedKeysToKeystore_Click(object sender, EventArgs e)
        {
            PgpKeyserverGetKey getKey = new PgpKeyserverGetKey(Global.keyServerConnectionBase);

            foreach (DataGridViewRow row in dataGridView1.Rows)
            {
                if (row.Cells[0].Value != null)
                {
                    if ((bool)row.Cells[0].Value == true)
                    {
                        await getKey.ImportKey((string)row.Cells[2].Value, Global.keyDb);
                    }
                }
            }
        }