SHOW:
|
|
- or go back to the newest paste.
1 | from string import ascii_lowercase as letters | |
2 | from itertools import product | |
3 | ||
4 | """ | |
5 | (regardless keep the len of the word smaller) | |
6 | if you want to try upper and lowercase use ascii_letters | |
7 | for realistic passsword import ascii_letters, digits, punctuation | |
8 | ||
9 | """ | |
10 | ||
11 | target = input("Enter target word: ") | |
12 | ||
13 | alpha = letters + " " | |
14 | ||
15 | for password in product(alpha, repeat=len(target)): | |
16 | print("".join(password)) |