我正在尝试从具有原始电子邮件会话的文本文件中解码base64字符串。 我尝试了一切但没有任何作用.. 文本文件如下所示开始,其中还包含base64字符串:
{"headers":
{"Mime-Version":
"1.0
(1.0)",
"Dkim-Signature":
"v=1;
a=rsa-sha256;
c=relaxed/relaxed;
d=yahoo.com;
s=s2048;
t=1524075605;
bh=aQqYfuYOtkQGrUPknrAaTe+SXDgSzNg2EHOkruCuE38=;
h=From:Date:Subject:References:In-Reply-To:To:From:Subject;
b=Yis3dAX8CR9v2GKUisIGuQ2Ez0LKM2h1QgYx8B/7Z19xu7clNWgdYXjru13dMe99fizEZfKMh5dJU6fhPMMoOmw6S9YQjpuABU5yBBgfy2tMbxJ9C3OiYO+4KAPXw16Bm9eshX2gDy042BpMAIvU9SDE6B5eG3onTtSzqqdmgNa8tZnW6M3RKmUUFsBVjZkJfFWsbq2bqS+9z3JK3Bi7E+9RHUf7RbO2b6FU9JR0aOn1zgQwC890+OuFaD+7FEBdSewCS8FrumCy81Gow7zy9EuSWMkFtxjqkN/1oWO5pBMCCuAztu+z+lqDNwa0Mqk3VVbbfTR9N6sDHsyqhDzh4w==",
"To": .........
答案 0 :(得分:0)
试试这个,请帮助你
import base64
encodedString = "YOUR_STRING_HERE"
base64.b64decode(encodedString)