#!/usr/bin/python # # pypass.py # example python pypass.py # import random # # I don't like to use confusing characters in passwords... # confusing chars are -- ell lL -- Oh Oo -- Zero 0 -- One 1 -- Eye iI s='AaBbCcDdEeFfGgHhJjKkMmNnPpRrSsTtUuYyZz23456789' # BEST!!! # s='AaBcCDe23456' # better # s='ABC123' # bad l = list(s) n = 0 while n < 10 : random.shuffle(l) n = n + 1 # print l # un-comment this to print the shuffled password s2 = "".join(l) print s2