Example #1
0
        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);
            }
        }
Example #2
0
        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);
        }