예제 #1
0
 def test_decode_aes256_auto_decodes_a_blank_string(self):
     self.assertEqual(Parser.decode_aes256_auto('', self.encryption_key), '')
예제 #2
0
 def test_decode_aes256_auto_decodes_cbc_plain_string(self):
     self.assertEqual(Parser.decode_aes256_auto(
         'IcokDWmjOkKtLpZehWKL6666Uj6fNXPpX6lLWlou+1Lrwb+D3ymP6BAwd6C0TB3hSA=='.decode('base64'), self.encryption_key),
         'All your base are belong to us')
예제 #3
0
 def test_decode_aes256_auto_decodes_cbc_base64_string(self):
     self.assertEqual(Parser.decode_aes256_auto(
         '!YFuiAVZgOD2K+s6y8yaMOw==|TZ1+if9ofqRKTatyUaOnfudletslMJ/RZyUwJuR/+aI=', self.encryption_key),
         'All your base are belong to us')
예제 #4
0
 def test_decode_aes256_auto_decodes_ecb_base64_string(self):
     self.assertEqual(Parser.decode_aes256_auto(
         'BNhd3Q3ZVODxk9c0C788NUPTIfYnZuxXfkghtMJ8jVM=', self.encryption_key),
         'All your base are belong to us')