项目课 day02.1

JWT - json-web-token

json.dumps(d,separators = (',' , ':'))

separators:分隔符,键值对之间  ,相连,

jwt.encode({'username':'a','exp':time.time()+300},'123456',algorithm='HS
...: 256')

jwt.decode(s,'123456',algorithms='HS256')

跨域

猜你喜欢

转载自www.cnblogs.com/gwy1163/p/12291748.html