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