HEX
Server: Apache
System: Linux srv1.prosuiteplus.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: prosuiteplus (1001)
PHP: 8.3.20
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/pdfminer/__pycache__/arcfour.cpython-38.pyc
U

�R�]��@s$dZddlZGdd�de�ZeZdS)z� Python implementation of Arcfour encryption algorithm.
See https://en.wikipedia.org/wiki/RC4
This code is in the public domain.

�Nc@s$eZdZdd�Zdd�ZeZZdS)�ArcfourcCs|dd�td�D�}d}t|�}td�D]>}|||t�|||�d}||||||<||<q&||_d\|_|_dS)NcSsg|]}|�qS�r)�.0�irr�2/usr/lib/python3/dist-packages/pdfminer/arcfour.py�
<listcomp>sz$Arcfour.__init__.<locals>.<listcomp>�r)rr)�range�len�sixZ
indexbytes�sr�j)�self�keyrr
Zklenrrrr�__init__s zArcfour.__init__cCs�|j|j}}|j}d}t�|�D]d}|dd}|||d}||||||<||<|||||d}|t�||A�7}q"|||_|_|S)N��r)rr
rrZ	iterbytesZint2byte)r�datarr
r�r�c�krrr�processszArcfour.processN)�__name__�
__module__�__qualname__rrZencryptZdecryptrrrrrs
r)�__doc__r�objectr�newrrrr�<module>s