Ian's Password Generator
ipwg is a password generator that can produce passwords of any length and with required types of characters.
A commandline tool is also available for all your commandline task needs.
pip install ipwg
For commandline use, you are all set. just run:
# 10 is the number of characters. ipwg 10 # See all the options ipwg -h
For use in your own code:
from ipwg import Generator # You can customize your charsets globally Generator.specials = '!@#$' generator = Generator(enable_all=True) generator.specials_count = 1 # generate a 10 character long password with # at least 1 of !@#$ pwd = generator.create_password(10)
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.