コード例 #1
0
ファイル: aestools_tests.py プロジェクト: bmcd87/crypto
 def test_quote_symbols(self):
     encrypted = aestools.cbc_black_box("test;admin=true;")
     self.assertFalse(aestools.has_admin_string(encrypted))
コード例 #2
0
ファイル: tests.py プロジェクト: bmcd87/crypto
    def test_challenge_16(self):
        """ Challenge 16: Bitflipping CBC """

        modified_encrypted_string = aestools.bit_flip_cbc(aestools.cbc_black_box)
        self.assertTrue(aestools.has_admin_string(modified_encrypted_string))