def test_decode_aes256_base64_auto_decodes_cbc_base64_string(self): self.assertEqual( parser.decode_aes256_base64_auto( b'!YFuiAVZgOD2K+s6y8yaMOw==|TZ1+if9ofqRKTatyUaOnfudletslMJ/RZyUwJuR/+aI=', self.encryption_key), b'All your base are belong to us')
def test_decode_aes256_base64_auto_decodes_ecb_base64_string(self): self.assertEqual( parser.decode_aes256_base64_auto( b'BNhd3Q3ZVODxk9c0C788NUPTIfYnZuxXfkghtMJ8jVM=', self.encryption_key), b'All your base are belong to us')
def test_decode_aes256_base64_auto_decodes_a_blank_string(self): self.assertEqual( parser.decode_aes256_base64_auto(b'', self.encryption_key), b'')
def test_decode_aes256_base64_auto_decodes_cbc_base64_string(self): self.assertEqual(parser.decode_aes256_base64_auto( b'!YFuiAVZgOD2K+s6y8yaMOw==|TZ1+if9ofqRKTatyUaOnfudletslMJ/RZyUwJuR/+aI=', self.encryption_key), b'All your base are belong to us')
def test_decode_aes256_base64_auto_decodes_ecb_base64_string(self): self.assertEqual(parser.decode_aes256_base64_auto( b'BNhd3Q3ZVODxk9c0C788NUPTIfYnZuxXfkghtMJ8jVM=', self.encryption_key), b'All your base are belong to us')
def test_decode_aes256_base64_auto_decodes_a_blank_string(self): self.assertEqual(parser.decode_aes256_base64_auto(b'', self.encryption_key), b'')