Пример #1
0
def get_password(event):
    password, salt, length = split_entry(event.widget.get())
    root.clipboard_clear()
    root.clipboard_append(make_password(password, salt, length))
    root.update()
    root.withdraw()
Пример #2
0
 def test_entry_split_with_length(self):
     password, salt, length = split_entry('password:salt:15')
     self.assertEqual('password', password)
     self.assertEqual('salt', salt)
     self.assertEqual(15, length)
Пример #3
0
 def test_entry_split(self):
     password, salt, length = split_entry('password:salt')
     self.assertEqual('password', password)
     self.assertEqual('salt', salt)
     self.assertEqual(10, length)
Пример #4
0
def get_password(event):
    password, salt, length = split_entry(event.widget.get())
    root.clipboard_clear()
    root.clipboard_append(make_password(password, salt, length))
    root.update()
    root.withdraw()