예제 #1
0
 def test_dictionary_attack_invalid_hash(self):
     self.assertIsNone(pybozocrack.dictionary_attack(self.hash, ['zebra', '123']))
예제 #2
0
 def test_dictionary_attack_invalid_hash(self):
     self.assertIsNone(
         pybozocrack.dictionary_attack(self.hash, ['zebra', '123']))
예제 #3
0
 def test_dictionary_attack_known_hash(self):
     self.assertEqual(pybozocrack.dictionary_attack(self.hash, ['zebra', '123', self.plaintext]), self.plaintext)
예제 #4
0
 def test_dictionary_attack_known_hash(self):
     self.assertEqual(
         pybozocrack.dictionary_attack(self.hash,
                                       ['zebra', '123', self.plaintext]),
         self.plaintext)