Esempio n. 1
0
 def test_decode_aes256_ecb_plain_decodes_a_long_string(self):
     self.assertEqual(
         parser.decode_aes256_ecb_plain(
             b64decode('BNhd3Q3ZVODxk9c0C788NUPTIfYnZuxXfkghtMJ8jVM='),
             self.encryption_key), b'All your base are belong to us')
Esempio n. 2
0
 def test_decode_aes256_ecb_plain_decodes_a_short_string(self):
     self.assertEqual(
         parser.decode_aes256_ecb_plain(
             b64decode('8mHxIA8rul6eq72a/Gq2iw=='), self.encryption_key),
         b'0123456789')
Esempio n. 3
0
 def test_decode_aes256_ecb_plain_decodes_a_blank_string(self):
     self.assertEqual(
         parser.decode_aes256_ecb_plain(b64decode(''), self.encryption_key),
         b'')
Esempio n. 4
0
 def test_decode_aes256_ecb_plain_decodes_a_long_string(self):
     self.assertEqual(parser.decode_aes256_ecb_plain(
         b64decode('BNhd3Q3ZVODxk9c0C788NUPTIfYnZuxXfkghtMJ8jVM='), self.encryption_key),
         b'All your base are belong to us')
Esempio n. 5
0
 def test_decode_aes256_ecb_plain_decodes_a_short_string(self):
     self.assertEqual(parser.decode_aes256_ecb_plain(
         b64decode('8mHxIA8rul6eq72a/Gq2iw=='), self.encryption_key),
         b'0123456789')
Esempio n. 6
0
 def test_decode_aes256_ecb_plain_decodes_a_blank_string(self):
     self.assertEqual(parser.decode_aes256_ecb_plain(
         b64decode(''), self.encryption_key),
         b'')