base32加密
import base64
enc = 'Re__Point'
m = str(base64.b32encode(enc.encode()))
print(m)
base32解密
import base64
enc = b'KJSV6X2QN5UW45A='
m = str(base64.b32decode(enc))
print(m)
base64加密
import base64
enc = 'Re__Point'
m = str(base64.b64encode(enc.encode()))
print(m)
base64解密
import base64
enc = b'UmVfX1BvaW50'
m = str(base64.b64decode(enc))
print(m)
变表base64解密
import base64
origin = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
base = 'yzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/abcdefghijklmnopqrstuvwx'
c = '1ovhXETgZUDgXFS='
table = str.maketrans(base,origin)
m = str(base64.b64decode(c.translate(table)),encoding=('utf-8'))
print(m)