private String SelectKey(NCryptStorageProvider provider) { String[] keyNames = provider.EnumKeys(); int keyIndex = SelectFromMenu("Choose a key", keyNames); return(keyNames[keyIndex]); }
private void EnumerateKeys() { using (NCryptStorageProvider provider = new NCryptStorageProvider(SelectProvider())) { String[] keyNames = provider.EnumKeys(); foreach (String keyName in keyNames) { Console.WriteLine(keyName); } } }