Thank you both for the help. I am thinking this is unlikely to become a large hash (looks like BroswerUK simulated a million key pairs). I don't quite understand while there is a big difference in memory and performance. I'm always looking for elegance and performance so I plan to play with BrowserUK's idea; of course code that I understand is pretty important also.