Top "Key" questions

A unique identifier used to retrieve a paired value.

How do you test a public/private DSA keypair?

Is there an easy way to verify that a given private key matches a given public key? I have a …

encryption ssl openssl key
How can I sort a std::map first by value, then by key?

I need to sort a std::map by value, then by key. The map contains data like the following: 1 realistically 8 …

c++ algorithm sorting dictionary key
Python: Tuples/dictionaries as keys, select, sort

Suppose I have quantities of fruits of different colors, e.g., 24 blue bananas, 12 green apples, 0 blue strawberries and so on. …

python select dictionary key tuples
Find array value using key

I would like to find the value in an array using the key. like this: $array=('us'=>'United', 'ca'=&…

php arrays key
Python method for reading keypress?

I'm new to Python, and I just made a game and a menu in Python. Question is, that using (raw_)…

python windows key keydown getch
Accessing dict_keys element by index in Python3

I'm trying to access a dict_key's element by its index: test = {'foo': 'bar', 'hello': 'world'} keys = test.keys() # dict_…

python dictionary python-3.x key
iterating through Enumeration of hastable keys throws NoSuchElementException error

I am trying to iterate through a list of keys from a hash table using enumeration however I keep getting …

java hashtable enumeration key
Get HTML5 localStorage keys

I'm just wondering how to get all key values in localStorage. I have tried to retrieve the values with a …

javascript html key local-storage
What is the difference between DSA and RSA?

It appears they are both encryption algorithms that require public and private keys. Why would I pick one versus the …

encryption rsa key dsa
How to iterate through table in Lua?

So, I have a table something along these lines: arr = { apples = { 'a', "red", 5 }, oranges = { 'o', "orange", 12 }, pears = { 'p', "green", 7 } } It …

arrays loops lua key lua-table