예제 #1
0
        private String SelectKey(NCryptStorageProvider provider)
        {
            String[] keyNames = provider.EnumKeys();

            int keyIndex = SelectFromMenu("Choose a key", keyNames);

            return(keyNames[keyIndex]);
        }
예제 #2
0
        private void EnumerateKeys()
        {
            using (NCryptStorageProvider provider = new NCryptStorageProvider(SelectProvider()))
            {
                String[] keyNames = provider.EnumKeys();

                foreach (String keyName in keyNames)
                {
                    Console.WriteLine(keyName);
                }
            }
        }