Does anyone recall PGP prompting a user to "generate some entropy" by striking random keys?
PGP would measure the entropy as it was being collected, indicating to the user with a cool little progress bar, and internally would time the key strokes, do some processing and use this as a seed for something or other.
I want to make a quick routine (console app) that does a similar "entropy collection" step in python, but I'm at a loss regarding a number of issues :
- Best method of timing
- Best method of collecting individual keystrokes
- Best method to display cool progress bar back to user
- Ideas about processing step, or actual details of the PGP step.
Best in the above means :
- Tightest cleanest code
- Most accurate (as in timing to picosecond or something)
- Most pythonic/functional and using the standard library