A Python implementation of RFC 7519. From from @jpadilla. Original implementation was written by @progrium.
Installing
Install with pip:
$ pip install jsonwebtoken
Usage
>>> import jsonwebtoken
>>> encoded = jsonwebtoken.encode({"some": "payload"}, "secret", algorithm="HS256")
>>> print(encoded)
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzb21lIjoicGF5bG9hZCJ9.4twFt5NiznN84AWoo1d7KO1T_yoc0Z6XOpOVswacPZg
>>> jsonwebtken.decode(encoded, "secret", algorithms=["HS256"])
{'some': 'payload'}
Documentation
View the full docs online at coming soon
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jsonwebtoken-1.0.0.tar.gz
(59.3 kB
view details)
File details
Details for the file jsonwebtoken-1.0.0.tar.gz.
File metadata
- Download URL: jsonwebtoken-1.0.0.tar.gz
- Upload date:
- Size: 59.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/4.0.2 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e069b83919b49f7348fa630027408da94e2a2ec1adc2652f16ec00d4b772e01
|
|
| MD5 |
c1f3b11c80c22254fb54dea395b4dee8
|
|
| BLAKE2b-256 |
9f50c5e43db3514c5394d9e38a699abefd59fdbf45365d8452538cdca77f2c68
|