コード例 #1
0
 def test_decode_aes256_cbc_base64_decodes_a_long_string(self):
     self.assertEqual(
         parser.decode_aes256_cbc_base64(
             '!YFuiAVZgOD2K+s6y8yaMOw==|TZ1+if9ofqRKTatyUaOnfudletslMJ/RZyUwJuR/+aI=',
             self.encryption_key), b'All your base are belong to us')
コード例 #2
0
 def test_decode_aes256_cbc_base64_decodes_a_short_string(self):
     self.assertEqual(
         parser.decode_aes256_cbc_base64(
             '!6TZb9bbrqpocMaNgFjrhjw==|f7RcJ7UowesqGk+um+P5ug==',
             self.encryption_key), b'0123456789')
コード例 #3
0
 def test_decode_aes256_cbc_base64_decodes_a_blank_string(self):
     self.assertEqual(
         parser.decode_aes256_cbc_base64('', self.encryption_key), b'')
コード例 #4
0
 def test_decode_aes256_cbc_base64_decodes_a_long_string(self):
     self.assertEqual(parser.decode_aes256_cbc_base64(
         '!YFuiAVZgOD2K+s6y8yaMOw==|TZ1+if9ofqRKTatyUaOnfudletslMJ/RZyUwJuR/+aI=', self.encryption_key),
         b'All your base are belong to us')
コード例 #5
0
 def test_decode_aes256_cbc_base64_decodes_a_short_string(self):
     self.assertEqual(parser.decode_aes256_cbc_base64(
         '!6TZb9bbrqpocMaNgFjrhjw==|f7RcJ7UowesqGk+um+P5ug==', self.encryption_key),
         b'0123456789')
コード例 #6
0
 def test_decode_aes256_cbc_base64_decodes_a_blank_string(self):
     self.assertEqual(parser.decode_aes256_cbc_base64(
         '', self.encryption_key),
         b'')