403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/jwt/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/jwt/__pycache__/api_jws.cpython-314.pyc
+
���i�1���^RIHt^RIt^RIt^RIt^RIHt^RIHtH	t	^RI
HtHtH
t
Ht^RIHt^RIHtHtHtHt^RIHtHt^R	IHt]'d	^R
I
HtHt!RR4t]!4t]P<t]P>t]P@t ]PBt!]PDt"]PFt#]PHt$R#)
�)�annotationsN)�Sequence)�
TYPE_CHECKING�Any)�	Algorithm�get_default_algorithms�
has_crypto�requires_cryptography)�PyJWK)�DecodeError�InvalidAlgorithmError�InvalidSignatureError�InvalidTokenError)�base64url_decode�base64url_encode)�RemovedInPyjwt3Warning)�AllowedPrivateKeys�AllowedPublicKeysc��]tRt^t$RtR'RRllt]RRl4tRRltR	R
lt	RRlt
R
RltR(RRlltR)RRllt
R)RRlltRRltRRltR*RRlltR0tR]R&RR/R R!lltR"R#ltR$R%ltR&tR#)+�PyJWS�JWTNc�$�V^8�dQhRRRRRR/#)��
algorithms�Sequence[str] | None�options�dict[str, Any] | None�return�None�)�formats"�-/usr/lib/python3/dist-packages/jwt/api_jws.py�__annotate__�PyJWS.__annotate__ s-��B�B�(�B�'�B�
�	B�c	�F�\4VnVe\V4M\VP4Vn\	VPP44F"pW0P9gKVPVK$	Vf/p/VP
4CVCVnR#)N)r�_algorithms�set�_valid_algs�list�keys�_get_default_optionsr)�selfrr�keys&&& r"�__init__�PyJWS.__init__ s���
2�3���)�5�C�
�O�3�t�?O�?O�;P�	
��
��(�(�-�-�/�0�C��*�*�*��$�$�S�)�1��?��G�A�$�3�3�5�A��A��r%c��V^8�dQhRR/#)rrzdict[str, bool]r )r!s"r"r#r$4s��*�*�/�*r%c	�
�RR/#)�verify_signatureTr r r%r"r,�PyJWS._get_default_options3s
��"�D�)�)r%c�$�V^8�dQhRRRRRR/#)r�alg_id�str�alg_objrrrr )r!s"r"r#r$7s!��%�%��%�y�%�T�%r%c
���WP9d\R4h\V\4'g\	R4hW PV&VP
P
V4R#)zG
Registers a new Algorithm for use when creating and verifying tokens.
z Algorithm already has a handler.z!Object is not of type `Algorithm`N)r'�
ValueError�
isinstancer�	TypeErrorr)�add)r-r6r8s&&&r"�register_algorithm�PyJWS.register_algorithm7sW���%�%�%��?�@�@��'�9�-�-��?�@�@�#*���� ������V�$r%c� �V^8�dQhRRRR/#)rr6r7rrr )r!s"r"r#r$Ds��(�(�3�(�4�(r%c
��WP9d\R4hVPVVPPV4R#)zu
Unregisters an Algorithm for use when creating and verifying tokens
Throws KeyError if algorithm is not registered.
zJThe specified algorithm could not be removed because it is not registered.N)r'�KeyErrorr)�remove)r-r6s&&r"�unregister_algorithm�PyJWS.unregister_algorithmDsF��
�)�)�)��1��
�

���V�$�������'r%c��V^8�dQhRR/#)rrz	list[str]r )r!s"r"r#r$Rs��&�&�	�&r%c
�,�\VP4#)z=
Returns a list of supported values for the 'alg' parameter.
)r*r))r-s&r"�get_algorithms�PyJWS.get_algorithmsRs���D�$�$�%�%r%c� �V^8�dQhRRRR/#)r�alg_namer7rrr )r!s"r"r#r$Xs��H�H�c�H�i�Hr%c
��VPV,# \d9p\'gT\9d\	RTR24Th\	R4ThRp?ii;i)z|
For a given string name, return the matching Algorithm object.

Example usage:

>>> jws_obj.get_algorithm_by_name("RS256")
zAlgorithm 'z9' could not be found. Do you have cryptography installed?�Algorithm not supportedN)r'rBr	r
�NotImplementedError)r-rK�es&& r"�get_algorithm_by_name�PyJWS.get_algorithm_by_nameXse��	H��#�#�H�-�-���	H��:�(�.C�"C�)�!�(��+d�e����&�&?�@�a�G��	H�s��A�3A�AFc�8�V^8�dQhRRRRRRRRR	R
RRR
RRR/#)r�payload�bytesr.z(AllowedPrivateKeys | PyJWK | str | bytes�	algorithmz
str | None�headersr�json_encoderztype[json.JSONEncoder] | None�is_payload_detached�bool�sort_headersrr7r )r!s"r"r#r$isd��K.�K.��K.�6�K.��	K.�
'�K.�4�
K.�"�K.��K.�

�K.r%c	���.pVf'\V\4'dVPp	MRp	MTp	V'd<VPR4p
V
'd
VR,p	VPR4pVRJdRpRVPRV	/pV'd%VPVRR7VP
V4VR,'gVRV'dRVR&M
RV9dVR\P!VRWWR7P4p
VP\V
44V'dTpM\V4pVPV4R	PV4pVPV	4p\V\4'd
VPpVPV4pVP!W�4pVP\V44V'dR
V^&R	PV4pVP#R4#)
N�HS256�alg�b64FT�typ)�encoding)�
separators�cls�	sort_keys�.r%�utf-8)�,�:)r;r�algorithm_name�get�
header_typ�_validate_headers�update�json�dumps�encode�appendr�joinrPr.�prepare_key�sign�decode)r-rSr.rUrVrWrXrZ�segments�
algorithm_�headers_alg�headers_b64�header�json_header�msg_payload�
signing_inputr8�	signature�encoded_strings&&&&&&&&           r"ro�PyJWS.encodeis��������#�u�%�%� �/�/�
�$�
�"�J��!�+�+�e�,�K��$�U�^�
�!�+�+�e�,�K��e�#�&*�#�#(����%��!L����"�"�7�T�"�:��M�M�'�"��e�}�}��u�
��!�F�5�M�
�f�_��u�
��j�j��z�|�
�
�&�(�	�	���(��5�6��!�K�*�7�3�K�����$��	�	�(�+�
��,�,�Z�8���c�5�!�!��'�'�C��!�!�#�&���L�L��4�	����(��3�4���H�Q�K����8�,���$�$�W�-�-r%c�0�V^8�dQhRRRRRRRRR	R
RR/#)
r�jwt�str | bytesr.�'AllowedPublicKeys | PyJWK | str | bytesrrrr�detached_payload�bytes | Noner�dict[str, Any]r )r!s"r"r#r$�sF��.
�.
�
�.
�5�.
�)�	.
�
'�.
�'�
.
�
�.
r%c	�R�V'd8\P!R\VP442\^R7Vf/p/VP
CVCpVR,pV'd*V'g"\
V\4'g\R4hVPV4wr�r�VPV4VPRR4RJd<Vf\R4hTp	RPV
PR^4^,V	.4p
V'dVPW�W�V4R	V	R
VRV/#)zypassing additional kwargs to decode_complete() is deprecated and will be removed in pyjwt version 3. Unsupported kwargs: ��
stacklevelr3z\It is required that you pass in a value for the "algorithms" argument when calling decode().r^TFz�It is required that you pass in a value for the "detached_payload" argument to decode a message having the b64 header set to false.rdrSryr})�warnings�warn�tupler+rrr;rr�_loadrkrirq�rsplit�_verify_signature)
r-r�r.rrr��kwargs�merged_optionsr3rSr|ryr}s
&&&&&&,      r"�decode_complete�PyJWS.decode_complete�s,����M�M�'�',�V�[�[�]�';�&<�>�'��
��?��G�4�D�L�L�4�G�4��)�*<�=���J�z�#�u�7M�7M��n��
�59�J�J�s�O�1������v�&��:�:�e�T�"�e�+��'�!�Z���'�G� �I�I�}�';�';�D�!�'D�Q�'G��&Q�R�M���"�"�=�)�*�U�
�w��f���
�	
r%c�0�V^8�dQhRRRRRRRRR	R
RR/#)
rr�r�r.r�rrrrr�r�rrr )r!s"r"r#r$�sF��"�"�
�"�5�"�)�	"�
'�"�'�
"�

�"r%c	��V'd8\P!R\VP442\^R7VPWW4VR7pVR,#)zppassing additional kwargs to decode() is deprecated and will be removed in pyjwt version 3. Unsupported kwargs: r�)r�rS)r�r�r�r+rr�)r-r�r.rrr�r��decodeds&&&&&&, r"rt�PyJWS.decode�sb����M�M�'�',�V�[�[�]�';�&<�>�'��
��&�&��j�<L�'�
���y�!�!r%c� �V^8�dQhRRRR/#)rr�r�rr�r )r!s"r"r#r$�s��	�	��	��	r%c
�X�VPV4^,pVPV4V#)z�Returns back the JWT header parameters as a dict()

Note: The signature is not verified so the header parameters
should not be fully trusted until signature verification is complete
)r�rk)r-r�rVs&& r"�get_unverified_header�PyJWS.get_unverified_header�s)���*�*�S�/�!�$�����w�'��r%c� �V^8�dQhRRRR/#)rr�r�rz*tuple[bytes, bytes, dict[str, Any], bytes]r )r!s"r"r#r$s��$;�$;��$;�)S�$;r%c	�N�\V\4'dVPR4p\V\4'g\	R\24hVPR^4wr#VP
R^4wrE\T4p\P!T4p\T\4'g\	R4h\T4p
\T4pY�Y�3# \dp\	R4ThRp?ii;i \\P3dp\	R4ThRp?ii;i \dp	\	RT	24T	hRp	?	ii;i \\P3dp\	R4ThRp?ii;i \\P3dp\	R	4ThRp?ii;i)
rez$Invalid token type. Token must be a rdzNot enough segmentsNzInvalid header paddingzInvalid header string: z,Invalid header string: must be a json objectzInvalid payload paddingzInvalid crypto padding)r;r7rorTrr��splitr:rr<�binascii�Errorrm�loads�dict)r-r�r|�crypto_segment�header_segment�payload_segment�err�header_dataryrOrSr}s&&          r"r��PyJWS._loads����c�3����*�*�W�%�C��#�u�%�%�� D�U�G�L�M�M�	>�,/�J�J�t�Q�,?�)�M�.;�.A�.A�$��.J�+�N�	A�*�>�:�K�	D��Z�Z��,�F��&�$�'�'��L�M�M�	B�&��7�G�	A�(��8�I���:�:��5�	>��3�4�#�=��	>��
�8�>�>�*�	A��6�7�S�@��	A��
�	D�� 7��s�;�<�!�C��	D���8�>�>�*�	B��7�8�c�A��	B��
�8�>�>�*�	A��6�7�S�@��	A�sx�(C�:C8�D'�>E	�
E8�C5�$C0�0C5�8D$�D�D$�'E�2E�E�	E5�$E0�0E5�8F$�F�F$c�0�V^8�dQhRRRRRRRRRR	R
R/#)rr|rTryr�r}r.r�rrrrr )r!s"r"r#r$-sN��I�I��I��I��	I�
5�I�)�
I�
�Ir%c	��Vf$\V\4'dVP.pVR,pT'dTeYe9d\	R4h\T\4'dTP
pTPpM#TPT4pTPT4pTPYT4'g\R4hR# \d\	R4Rhi;i \dp	\	R4T	hRp	?	ii;i)Nr]zAlgorithm not specifiedz&The specified alg value is not allowedrMzSignature verification failed)r;rrhrBr
rr.rPrNrr�verifyr)
r-r|ryr}r.rr]r8�prepared_keyrOs
&&&&&&    r"r��PyJWS._verify_signature-s�����*�S�%�"8�"8��,�,�-�J�	M���-�C��z�-�#�2G�'�(P�Q�Q��c�5�!�!��m�m�G��7�7�L�
N��4�4�S�9��#�.�.�s�3�L��~�~�m�9�E�E�'�(G�H�H�F��!�	M�'�(A�B��L�	M��'�
N�+�,E�F�A�M��
N�s#�	C�?C!�C�!C=�,C8�8C=r^zset[str]�_supported_critr`c�$�V^8�dQhRRRRRR/#)rrVr�r`rYrrr )r!s"r"r#r$Os$��)�)�%�)�48�)�	
�)r%c	��RV9dVPVR,4V'gRV9dVPV4R#R#R#)�kid�critN)�
_validate_kid�_validate_crit)r-rVr`s&&$r"rk�PyJWS._validate_headersOs=���G�����w�u�~�.��F�g�-�����(�.�xr%c� �V^8�dQhRRRR/#)rr�rrrr )r!s"r"r#r$Ws��P�P��P��Pr%c	�H�\V\4'g\R4hR#)z(Key ID header parameter must be a stringN)r;r7r)r-r�s&&r"r��PyJWS._validate_kidWs ���#�s�#�#�#�$N�O�O�$r%c� �V^8�dQhRRRR/#)rrVr�rrr )r!s"r"r#r$[s����n���r%c	�4�VR,p\V\4'd\V4^8Xd\R4hVFWp\V\4'g\R4hW0P
9d\RV24hW19gKJ\RVR24h	R#)r�z/Invalid 'crit' header: must be a non-empty listz-Invalid 'crit' header: values must be stringsz Unsupported critical extension: zCritical extension 'z' is missing from headersN)r;r*�lenrr7r�)r-rVr��exts&&  r"r��PyJWS._validate_crit[s����v����$��%�%��T��a��#�$U�V�V��C��c�3�'�'�'�(W�X�X��.�.�.�'�*J�3�%�(P�Q�Q��!�'�*�3�%�/H�I���
r%)r'r)r)NN)NNNFT)�NNN)r�N)�__name__�
__module__�__qualname__�__firstlineno__rjr/�staticmethodr,r>rDrHrPror�rtr�r�r�r��__annotations__rkr�r��__static_attributes__r r%r"rrs����J�B�&�*��*�%�(�&�H�"K.�Z.
�`"�,	�$;�LI�@"'��O�X�'�)�;@�)�P��r%r)%�
__future__rr�rmr��collections.abcr�typingrrrrrr	r
�api_jwkr�
exceptionsrr
rr�utilsrrrrrr�_jws_global_objror�rtr>rDrPr�r r%r"�<module>r�s���"����$�%������6�,��A�J�J�Z
�'��	�	�	��!�1�1��	�	�	��$�7�7��&�;�;��'�=�=��'�=�=�r%

Youez - 2016 - github.com/yon3zu
LinuXploit