We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6fd173 commit 13fc47aCopy full SHA for 13fc47a
1 file changed
README.rst
@@ -23,6 +23,27 @@ This is a JOSE implementation that is fully compatible with Google App Engine
23
which requires the use of the PyCrypto library.
24
25
26
+Installation
27
+------------
28
+
29
+::
30
31
+ $ pip install python-jose
32
33
34
+Usage
35
+-----
36
37
+.. code-block:: python
38
39
+ >>> from jose import jwt
40
+ >>> token = jwt.encode({'key': 'value'}, 'secret', algorithm='HS256')
41
+ u'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJrZXkiOiJ2YWx1ZSJ9.FG-8UppwHaFp1LgRYQQeS6EDQF7_6-bMFegNucHjmWg'
42
43
+ >>> jwt.decode(token, 'secret', algorithms=['HS256'])
44
+ {u'key': u'value'}
45
46
47
Thanks
48
------
49
0 commit comments