You are hereGenerating long random passwords
Submitted by Bart on Sun, 20140223 23:20
I decided to try to use CACert.org as my SSL cert provider before giving up. They really wanted me to give them a truly random 32character password string. Here's what I did to get them one… On my GitHub is a program called randpass. Up until tonight, it was a slightlyhacked version of a C program I wrote in the 1980s. It used a simplistic heuristic to generate a random password from bytes pulled from A better plan is to figure out the number of possible passwords of the given length and drawn from the given character set, and pick one at random. This is "obviously" correct, and requires generating the smallestpossible uniform random number. The only convenient way to do this, though, is with large integer arithmetic. I started to get out GMP, and realized I don't have the energy to do that. I considered Nickle and Haskell, and finally decided Python 3 was the right answer. So now Whee. Group/Project:
