Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- global passwordlength
- def generatepwd():
- print passwordlength
- output = 'magi#cpasswordphrase'[0:passwordlength]
- return output
- if len(sys.argv) > 1:
- passwordlength = sys.argv[1]
- else:
- passwordlength = 8
- print passwordlength
- print generatepwd()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement