golden hour
/lib/python2.7/site-packages/josepy
⬆️ Go Up
Upload
File/Folder
Size
Actions
__init__.py
1.88 KB
Del
OK
__init__.pyc
2.45 KB
Del
OK
__init__.pyo
2.45 KB
Del
OK
b64.py
1.47 KB
Del
OK
b64.pyc
1.87 KB
Del
OK
b64.pyo
1.87 KB
Del
OK
b64_test.py
2.27 KB
Del
OK
b64_test.pyc
4.22 KB
Del
OK
b64_test.pyo
4.22 KB
Del
OK
errors.py
815 B
Del
OK
errors.pyc
1.88 KB
Del
OK
errors.pyo
1.88 KB
Del
OK
errors_test.py
463 B
Del
OK
errors_test.pyc
1.04 KB
Del
OK
errors_test.pyo
1.04 KB
Del
OK
interfaces.py
7.67 KB
Del
OK
interfaces.pyc
8.48 KB
Del
OK
interfaces.pyo
8.48 KB
Del
OK
interfaces_test.py
3.54 KB
Del
OK
interfaces_test.pyc
6.25 KB
Del
OK
interfaces_test.pyo
6.25 KB
Del
OK
json_util.py
15.38 KB
Del
OK
json_util.pyc
17.33 KB
Del
OK
json_util.pyo
17.33 KB
Del
OK
json_util_test.py
13.94 KB
Del
OK
json_util_test.pyc
19.88 KB
Del
OK
json_util_test.pyo
19.88 KB
Del
OK
jwa.py
6.11 KB
Del
OK
jwa.pyc
7.75 KB
Del
OK
jwa.pyo
7.75 KB
Del
OK
jwa_test.py
4.54 KB
Del
OK
jwa_test.pyc
6.66 KB
Del
OK
jwa_test.pyo
6.66 KB
Del
OK
jwk.py
9.19 KB
Del
OK
jwk.pyc
10.5 KB
Del
OK
jwk.pyo
10.5 KB
Del
OK
jwk_test.py
6.92 KB
Del
OK
jwk_test.pyc
9.29 KB
Del
OK
jwk_test.pyo
9.29 KB
Del
OK
jws.py
13.93 KB
Del
OK
jws.pyc
15.53 KB
Del
OK
jws.pyo
15.02 KB
Del
OK
jws_test.py
8.32 KB
Del
OK
jws_test.pyc
11.65 KB
Del
OK
jws_test.pyo
11.65 KB
Del
OK
magic_typing.py
371 B
Del
OK
magic_typing.pyc
816 B
Del
OK
magic_typing.pyo
816 B
Del
OK
magic_typing_test.py
1.45 KB
Del
OK
magic_typing_test.pyc
1.6 KB
Del
OK
magic_typing_test.pyo
1.6 KB
Del
OK
test_util.py
2.23 KB
Del
OK
test_util.pyc
3.27 KB
Del
OK
test_util.pyo
3.27 KB
Del
OK
testdata
-
Del
OK
util.py
7.41 KB
Del
OK
util.pyc
11.18 KB
Del
OK
util.pyo
11.08 KB
Del
OK
util_test.py
6.45 KB
Del
OK
util_test.pyc
11.53 KB
Del
OK
util_test.pyo
11.53 KB
Del
OK
Edit: b64.pyc
� �t0^c @ s4 d Z d d l Z d d l Z d � Z d � Z d S( s `JOSE Base64`_ is defined as: - URL-safe Base64 - padding stripped .. _`JOSE Base64`: https://tools.ietf.org/html/draft-ietf-jose-json-web-signature-37#appendix-C .. Do NOT try to call this module "base64", as it will "shadow" the standard library. i����Nc C sC t | t j � s- t d j t j � � � n t j | � j d � S( s� JOSE Base64 encode. :param data: Data to be encoded. :type data: bytes :returns: JOSE Base64 string. :rtype: bytes :raises TypeError: if ``data`` is of incorrect type s argument should be {0}t =( t isinstancet sixt binary_typet TypeErrort formatt base64t urlsafe_b64encodet rstrip( t data( ( s. /usr/lib/python2.7/site-packages/josepy/b64.pyt b64encode s c C s� t | t j � rH y | j d � } Wqi t k rD t d � � qi Xn! t | t j � si t d � � n t j | d d t | � d � S( s^ JOSE Base64 decode. :param data: Base64 string to be decoded. If it's unicode, then only ASCII characters are allowed. :type data: bytes or unicode :returns: Decoded data. :rtype: bytes :raises TypeError: if input is of incorrect type :raises ValueError: if input is unicode with non-ASCII characters t asciis5 unicode argument should contain only ASCII characterss# argument should be a str or unicodeR i ( R R t string_typest encodet UnicodeEncodeErrort ValueErrorR R R t urlsafe_b64decodet len( R ( ( s. /usr/lib/python2.7/site-packages/josepy/b64.pyt b64decode# s ( t __doc__R R R R ( ( ( s. /usr/lib/python2.7/site-packages/josepy/b64.pyt <module> s
Save