Advertisement
Hey_Arnold

Brute

May 24th, 2022
892
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement