Base64解码无法解码所有数据

时间:2019-08-26 16:09:43

标签: python

我正在使用base64对加密文件进行编码,然后输出编码文件,然后另一个python3读取程序 但是当b64decode时,只有 前端的一部分是解码

Python3.7.4

import ssl
import os
import time
import base64  
import Crypto
from Crypto.PublicKey import RSA
from Crypto.Cipher import PKCS1_OAEP

from base64 import b64encode
from base64 import b64decode

de_buff=512

en_data_read=open('encrypt_data',mode='r',encoding='utf-8')
en_data=en_data_read.read()
en_data=b64decode(en_data)
de_exec_payload(en_data)

这是文件中的crypto_data

skscZSS5O/UcFCV8ikY8soZQiIoMdy5TfyrwF8IImS6BSxZD9Dfog+iE/E96Y4IhnXbsaimBY7+qEUyLUnns5vi6BpzP/XipL8TSsZVWFImho9hhVhH0Kjo7Lr2qs+NLsj6Nf59kXzRAbwd2hdvyCHmHE2lHU4BMKGWfSy2FPKns5uTs71OpBjmWsiDssCzgemG3LDj0SkKfV2N1tmPbDLpSrQ9dvIGmL2mfUMTumECShzrISnFVrkleue+Mh3L8AFrkJhoJ+nOwRJduIjPSbTwd2gY4YpoyMG+BHTUt8zK3rCrzF0tQas5JO8Eik5UCX9oF3sQ/FIETCaVGSrzfLyWuSgbmLleHlOufRD0aiGVTM52Gb13tXU0XgeozjOg310FIrQWsUU+0qYsL8X5S56U697fnS7JXY7T5N/qb2S2LggU/169/XXCa577Ks2ps/rxOnOpkyKscPd4d0NHSOx9HLN+ER5WwSsWYT+rV9QGRUCHz9ipsQV2IELEk4V7h0WImwx1mo01QNJGZR2ZJdzPfPdbKGgbmRdkFVocQse9S6utIEHzWlcAD5zjEZbdCOzBUTz0xr02A+82a8I23yTnKS2W9lu88eMUrQnCQO+qIrGeZWfPSR8ovXMr82vPiHuApvPoEbbtHNV53mhz4IG+u/kq8EJ0F/09ldW/lYGI='b'Xql9xCCfFZxWsIBcQasb3GIL8wYc+77/GM0saGuoCkRBCOn0kCC8rgfqfV/a0ZDNmKD77Cxl7hZX9zxZSZrZzVIIXDGgwuj9PfQtz1ak38ScyoC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z4xpCId6dzqSlZ6i8a2BQw93K7AzcWPbw+YcXMgvPvm0hDhXwj5j719yGo2YafRHf9zx5HhrlCgAwTFLMkUo6GO5BHYOFQ9irdUlwExVGvZQhnc8Ww28vDkTnRZC1EGrePJ3vcuHauhAY610LYJvZvhMVNdDRNnXCSjQs+9yPxskGPjBZUC6vGlwJWF2KAahNHlLicxD2r4Kck9EUXQXcOfkW3xqBtngs5mXa0gpvPxx848Ok2QNdBYOiXxuvGvHuHACFznsQHH4SO8vi5ArAN9KfMSZXpO/UADcc5JE88+1v2YvuI+YxT1ICQjVYrlXd32v4zU=

它仅读取一个块(第684个解码) 其他人将无法解码

0 个答案:

没有答案