base64解码
import base64
import warnings
warnings.filterwarnings("ignore")
content = 'eyJ1IjoiNTc5NGQ0ZjAtZjY2YS0xMWViLWI4ZjMtNzNiMDQ0YzM2M2YyIiwidiI6ImNiYmNkZmUwLWU5M2EtMTFlYi1hYzI5LTg1YzkzOGNmYWY1ZiIsInQiOjE2MjgyMzE2MzQ1OTksImgiOiJlMDAzOGU5OWI2OGJmN2Q2NzY2ZjBkM2UzMzYyZTI0N2RjODJlMDRlNjNmMzg2ZjNlYzliYmQ1MDgzOGY0MmU4In0='
print(base64.b64decode(content).decode('unicode_escape'))
返回结果:
{"u":"5794d4f0-f66a-11eb-b8f3-73b044c363f2","v":"cbbcdfe0-e93a-11eb-ac29-85c938cfaf5f","t":1628231634599,"h":"e0038e99b68bf7d6766f0d3e3362e247dc82e04e63f386f3ec9bbd50838f42e8"}