Paul C's Blog

To be funny,to grow up!

0%

Base64解码

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import base64
f=open('input.txt','r')
out=open('base64_decode.txt','w')
f1=f.read()
def b64dec(astr,m):
f2=astr
for i in range(m):
f2=base64.b64decode(f2)
print f2
astr=f2
out.write(astr)


b64dec(f1,2)
f.close()
out.close()