HEX
Server: Apache
System: Linux msm5694.mjhst.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: camjab_ssh (1000)
PHP: 5.3.29
Disabled: NONE
Upload Files
File: //lib/python2.7/site-packages/josepy/b64.pyc
ó
›t0^c@s4dZddlZddlZd„Zd„ZdS(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ÿÿÿÿNcCsCt|tjƒs-tdjtjƒƒ‚ntj|ƒjdƒ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

    sargument should be {0}t=(t
isinstancetsixtbinary_typet	TypeErrortformattbase64turlsafe_b64encodetrstrip(tdata((s./usr/lib/python2.7/site-packages/josepy/b64.pyt	b64encodescCsŒt|tjƒrHy|jdƒ}Wqitk
rDtdƒ‚qiXn!t|tjƒsitdƒ‚ntj	|ddt
|ƒ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

    tasciis5unicode argument should contain only ASCII characterss#argument should be a str or unicodeRi(RRtstring_typestencodetUnicodeEncodeErrort
ValueErrorRRRturlsafe_b64decodetlen(R	((s./usr/lib/python2.7/site-packages/josepy/b64.pyt	b64decode#s
(t__doc__RRR
R(((s./usr/lib/python2.7/site-packages/josepy/b64.pyt<module>s