コード例 #1
0
    def post_decrypt_data(self, data):
        """Remove useless symbols which
           appear over padding for AES (PKCS#7)."""
#        print("---RawRNCryptor---")#debug
#        print(data)   #debug
#        print(bord(data[-1]))#debug
        data = data[:-bord(data[-1])]
        
        return data
コード例 #2
0
 def post_decrypt_data(self, data):
     """Remove useless symbols which
        appear over padding for AES (PKCS#7)."""
     data = data[:-bord(data[-1])]
     return data