コード例 #1
0
 def test_decode_aes256_plain_auto_decodes_cbc_plain_string(self):
     self.assertEqual(
         parser.decode_aes256_plain_auto(
             b64decode(
                 'IcokDWmjOkKtLpZehWKL6666Uj6fNXPpX6lLWlou+1Lrwb+D3ymP6BAwd6C0TB3hSA=='
             ), self.encryption_key), b'All your base are belong to us')
コード例 #2
0
 def test_decode_aes256_plain_auto_decodes_ecb_plain_string(self):
     self.assertEqual(
         parser.decode_aes256_plain_auto(
             b64decode('BNhd3Q3ZVODxk9c0C788NUPTIfYnZuxXfkghtMJ8jVM='),
             self.encryption_key), b'All your base are belong to us')
コード例 #3
0
 def test_decode_aes256_plain_auto_decodes_a_blank_string(self):
     self.assertEqual(
         parser.decode_aes256_plain_auto(b'', self.encryption_key), b'')
コード例 #4
0
 def test_decode_aes256_plain_auto_decodes_cbc_plain_string(self):
     self.assertEqual(parser.decode_aes256_plain_auto(
         b64decode('IcokDWmjOkKtLpZehWKL6666Uj6fNXPpX6lLWlou+1Lrwb+D3ymP6BAwd6C0TB3hSA=='), self.encryption_key),
         b'All your base are belong to us')
コード例 #5
0
 def test_decode_aes256_plain_auto_decodes_ecb_plain_string(self):
     self.assertEqual(parser.decode_aes256_plain_auto(
         b64decode('BNhd3Q3ZVODxk9c0C788NUPTIfYnZuxXfkghtMJ8jVM='), self.encryption_key),
         b'All your base are belong to us')
コード例 #6
0
 def test_decode_aes256_plain_auto_decodes_a_blank_string(self):
     self.assertEqual(parser.decode_aes256_plain_auto(b'', self.encryption_key), b'')