Created
September 10, 2021 18:05
-
-
Save rfinnie/2197f00eee5f24e98e7000da69381ad7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import random | |
from xkcdpass.xkcd_password import choose_words, generate_wordlist | |
segments = [ | |
x.capitalize() | |
for x in choose_words(generate_wordlist(min_length=5, max_length=9), 2) | |
] | |
segments.append(str(random.randint(0, 99))) | |
segments.append(str(random.randint(0, 99))) | |
random.shuffle(segments) | |
print("{}!".format("".join(segments))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment