Пример #1
0
def checkPwnage():
    checkWin = tk.Toplevel(root)
    txt = Label(checkWin, text="Type in the password to check if it's pwned.")
    txt.pack()
    ent = Entry(checkWin, show="*")
    ent.pack()
    passw = ent.get()
    go = Button(checkWin, text="Search", command=lookup_pwned_api(passw))
    go.pack(padx=10, pady=5, ipadx=5, ipady=2)
    checkWin.geometry("250x200")
Пример #2
0
def randPass(length):
    symbols = '~`!@#$%^&*()[]<>;:.?/-_+='  # 25 symbols
    chars = string.ascii_letters + string.digits + symbols  # 52 letter + 10 digits
    p = ''.join(random.SystemRandom().choice(chars) for i in range(length))
    lookup_pwned_api(p)  # Pwnage test
    return p
Пример #3
0
 def update(self, method):
     self.total = "Number of times Password found : " + str(
         lookup_pwned_api(self.p)[1])
     self.total_text.set(self.total)
     self.entry.delete(0, END)