Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions password.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,16 @@ def run(num):
chosen = random_words(words, num)
entropy = entropy_per_word(words)
total_entropy = entropy*num
password = ""

print "chosen words:"
for word in chosen:
print " " + word
password = password+word

print "entropy per word: " + str(entropy)
print "total entropy: " + str(total_entropy)
print "password:\t%s" % password
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you change the tab to a space so it's consistent with the other two print statements?


if __name__ == '__main__':
args = args()
Expand Down