Add ability to generate random pass & ability to customize key type.

Hope I got everything in order. Someone want to test this out a bit and offer some tips?