public void TestGetKeys() { Gpg g = new Gpg(GPG_BINARY_PATH); GpgKeyCollection col = g.GetKeys(); Debug.WriteLine("count: " + col.Count.ToString()); foreach (GpgKey k in col) { PrintKey(k); } }
public string[] ListKeys() { GpgKeyCollection col = tool.GetKeys(); int i = 0; string[] returnstring = null; foreach (GpgKey key in col) { returnstring[i] = key.ToString(); i = i + 1; } return(returnstring); }