在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:jpadilla/pyjwt开源软件地址:https://github.com/jpadilla/pyjwt开源编程语言:Python 100.0%开源软件介绍:PyJWTA Python implementation of RFC 7519. Original implementation was written by @progrium. Sponsor
InstallingInstall with pip: $ pip install PyJWT Usage>>> import jwt
>>> encoded = jwt.encode({"some": "payload"}, "secret", algorithm="HS256")
>>> print(encoded)
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzb21lIjoicGF5bG9hZCJ9.Joh1R2dYzkRvDkqv3sygm5YyK8Gi4ShZqbhK2gxcs2U
>>> jwt.decode(encoded, "secret", algorithms=["HS256"])
{'some': 'payload'} DocumentationView the full docs online at https://pyjwt.readthedocs.io/en/stable/ TestsYou can run tests from the project root after cloning with: $ tox |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论