Exemple #1
0
 def text_hex_decrypt(self):
     crypted_msgs = {msg: crypt.hex_encrypt(msg) for msg in self.TEST_MSGS}
     [self.assertEqual(msg, crypt.hex_decrypt(
         crypted_msg)) for msg, crypted_msg
      in crypted_msgs.iteritems()]
Exemple #2
0
 def text_hex_decrypt(self):
     for msg in self.msgs:
         crypted_msg = crypt.hex_encrypt(msg)
         self.assertEqual(msg, crypt.hex_decrypt(crypted_msg))
Exemple #3
0
 def text_hex_decrypt(self):
     for msg in self.TEST_MSGS:
         crypted_msg = crypt.hex_encrypt(msg)
         self.assertEqual(msg, crypt.hex_decrypt(crypted_msg))