+
    Œvj/x  ã                   ó
  € R t  ^ RIt^ RIt^ RIHtHt ^ RIHt ^ RIH	t	 ^ RI
HtHtHtHt ^ RIHt ^ RIHt ^ RIHt ^ R	IHt  ^ RIt^ R
IHt R t^ t^ t]P:                  t^t^t ^t!^t"^t#^ t$^ t%]&! ^^4       F  t']%^]',          ,          t%K  	  ]PP                  '       d	   ^ s)Rt*R t+M]PX                  t+ ! R R4      t- ! R R]4      t.Rt/R t0R t1]! RPe                  R ]/Pg                  4       Pi                  4        4       4      4      t5R t6R+R lt7R t8]5RR3R lt9R t:R+R lt;R t<R t=R,R lt> ! R  R!]-]4      t?R,R" lt@R,R# ltAR,R$ ltBR% tCR& tD]ER'8X  d�   ]PŒ                   U u. uF  q R(,          R)8X  g   K  V NK  	  up tG]G'       d9   ]PŒ                   U u. uF  q R(,          R)8w  g   K  V NK  	  up ]nF        ]H! ]G4      tR*]PŒ                  9   d
   ]=! 4        R# ]D! 4        R# R#   ] d    Rt EL¨i ; iu up i u up i )-z3.3.0N)ÚhexlifyÚ	unhexlify)Úmd5)ÚBytesIO)ÚasBytesÚint2ByteÚrawBytesÚasNative)ÚCanvas)Ú	PDFObject)ÚFlowable)Ú	rl_config)Úsha256c                ó@   a € S ^ 8X  d   V# \        V 3R lV 4       4      # )z9xor's each byte of the key with the number, which is <256c              3   ó6   <"  € T F  pSV,          x € K  	  R # 5i©N© )Ú.0ÚkÚnums   & €Ú\/var/www/html/daimler-pipeline/venv/lib/python3.14/site-packages/reportlab/lib/pdfencrypt.pyÚ	<genexpr>ÚxorKey.<locals>.<genexpr>   s   øé € Ð$¡˜1��Q—’£ùs   ƒ)Úbytes)r   Úkeys   f&r   ÚxorKeyr      s   ø€ à
ˆA„v�cˆzÜÔ$¡Ó$Ó$Ð$ó    s   ½�Ü«ovpèì\C�’B~¸ôÞEg8²f€Sj'yÏGÊY¹Ü-ÄQˆ¯Ñ÷¡L>™‰i÷Ä´'ékÉú¦p€Íª¯|—÷Ì ÁïÇ—Ò;¯áü,Ó¡æËØæ\H}Ü…á¼Ä>|Å—µT­T•±Ü!¶+E#¡¤Oój˜"ÂËŒHBØB~§7Òè1.×©Ý2}Àÿmž3â/ê„W‚½ÈKÂ;?¾#„`Wóàìž…œËÇÉ#ÿÞê²Ôš½ºz½‡OÔô¬³(z’ü¼…i�û!	|w,‹IÉ_D`A¼}+r-%F(@È\cL2(œ•BM¡‰UG�ýíÎØ±c                 ó¼   € \        V 4       Uu. uF"  p\        V\        ,           R ,          ,          NK$  	  pp\        V4      p\        V ,           R ,          sV# u upi )é   )ÚrangeÚ_os_random_bÚ_os_random_xr   )ÚnÚiÚbs   &  r   Ú
os_urandomr%   0   sN   € ä9>¸q¼ÓB¹°AŒ\˜1œ\�>¨3Õ.×/Ð/¹ˆÐBÜ�!‹HˆÜ$ qÕ(¨CÕ/ˆØˆùò Cs   Ž(Ac                   óV   a € ] tR t^:t o ^ tR
R ltR tR tR tRR lt	R t
R tR	tV tR# )ÚStandardEncryptionNc                ó´  € Wn         V'       d   W n        MWn        Vf   \        P                  pV^(8X  d	   ^V n        MPV^€8X  d	   ^V n        MAVR8X  d    \
        '       g   \        R4      h^V n        M\        R\        V4      ,          4      hW0n        W@n	        WPn
        W`n        R;V n        ;V n        ;V n        ;V n        ;V n        ;V n        V n        R# )aÚ  
This class defines the encryption properties to be used while creating a pdf document.
Once initiated, a StandardEncryption object can be applied to a Canvas or a BaseDocTemplate.
The userPassword parameter sets the user password on the encrypted pdf.
The ownerPassword parameter sets the owner password on the encrypted pdf.
The boolean flags canPrint, canModify, canCopy, canAnnotate determine wether a user can
perform the corresponding actions on the pdf when only a user password has been supplied.
If the user supplies the owner password while opening the pdf, all actions can be performed regardless
of the flags.
Note that the security provided by these encryption settings (and even more so for the flags) is very weak.
Nr   úAstrength==256 is not supported as package pyaes is not importableúUnknown encryption strength=%s)ÚuserPasswordÚownerPasswordr   ÚencryptionStrengthÚrevisionÚpyaesÚ
ValueErrorÚreprÚcanPrintÚ	canModifyÚcanCopyÚcanAnnotateÚOÚUÚPr   ÚOEÚUEÚPerms)Úselfr+   r,   r2   r3   r4   r5   Ústrengths   &&&&&&&&r   Ú__init__ÚStandardEncryption.__init__<   sÀ   € ð )ÔßØ!.Õà!-ÔØÒÜ ×3Ñ3ˆHØ�rŒ>ØˆD�MØ˜Œ_ØˆD�MØ˜Œ_ß“5Ü Ð!dÓeÐeØˆD�MäÐ=ÄÀXÃÕNÓOÐOØ ŒØ"ŒØŒØ&ÔØPTÐTˆŒÐT�”ÐT˜$œ&ÐT 4¤8ÐT¨d¬gÐT¸¼À$Æ*r   c                ó>   € V;V n         ;V n        ;V n        V n        R # r   )r2   r3   r4   r5   )r<   Úvalues   &&r   ÚsetAllPermissionsÚ$StandardEncryption.setAllPermissions^   s*   € ð !ð	!ˆŒð 	!ØŒð	!àŒØÖr   c                ó  € ^ pV P                   '       d   V\        ,          pV P                  '       d   V\        ,          pV P                  '       d   V\
        ,          pV P                  '       d   V\        ,          pV\        ,          pV# )é    )	r2   Ú	printabler3   Ú
modifiabler4   Úcopypastabler5   ÚannotatableÚ
higherbits)r<   Úps   & r   ÚpermissionBitsÚ!StandardEncryption.permissionBitsc   s]   € ØˆØ�=�=ˆ=˜a¤)�m˜!Ø�>�>ˆ>˜q¤:�~˜1Ø�<�<ˆ<˜Q¤Õ-˜Ø××Ð ¤[¥˜QØ”
�NˆØˆr   c                óÜ   € V P                   '       g   \        R4      hV P                  f   \        R4      h\        V P                  V P                  V P
                  WP                  R7      # )zencode a string, stream, textúencryption not prepared!znot registered in PDF object©r.   )Úpreparedr0   ÚobjnumÚ	encodePDFr   Úversionr.   )r<   Úts   &&r   ÚencodeÚStandardEncryption.encodek   sN   € à�}�}ˆ}ÜÐ7Ó8Ð8Ø�;‰;ÒÜÐ;Ó<Ð<Ü˜Ÿ™ 4§;¡;°·±¸aÏ-É-ÔXÐXr   c                óÎ  € \         ^
8¼  d   \        RV P                  ,          4       V P                  '       d   \	        R4      hV'       d   TpM8VP                  4       pVP                  P                  4       p\        '       d   Rp\         ^
8¼  dK   \        RV P                  ,          4       \        RV P                  ,          4       \        RV,          4       \        V P                  4       R,
          4      V n        \        '       d   RV n        \         ^
8¼  d&   \        R\        V P                  4      ,          4       V P                  ^8X  EdÅ   Rp\!        ^4      p\!        ^4      p\#        \!        ^ 4      4      V n        \         ^
8¼  d\   \        R\'        V4      ,          4       \        R	\'        V4      ,          4       \        R
\'        V P$                  4      ,          4       \)        \#        V P                  R,          4      V,           4      pVP                  4       V,           V,           V n        \         ^
8¼  d&   \        R\'        V P*                  4      ,          4       \)        \#        V P                  R,          4      V,           4      p\,        P.                  ! \,        P0                  ! VP                  4       VR7      4      p	V	P3                  V P$                  4      V n        V ;P4                  V	P3                  4       ,          un        \         ^
8¼  d&   \        R\'        V P4                  4      ,          4       \!        ^4      p
\!        ^4      p\)        \#        V P                  R,          4      V
,           V P*                  ,           4      pVP                  4       V
,           V,           V n        \         ^
8¼  d&   \        R\'        V P6                  4      ,          4       \)        \#        V P                  R,          4      V,           V P*                  ,           4      p\,        P.                  ! \,        P0                  ! VP                  4       VR7      4      p	V	P3                  V P$                  4      V n        V ;P8                  V	P3                  4       ,          un        \         ^
8¼  d&   \        R\'        V P8                  4      ,          4       V P                  ^ÿ,          V P                  ^,	          ^ÿ,          V P                  ^,	          ^ÿ,          V P                  ^,	          ^ÿ,          ^ÿ^ÿ^ÿ^ÿ\;        R4      \;        R4      \;        R4      \;        R4      ^^^^.p\,        P.                  ! \,        P0                  ! V P$                  VR7      4      p	V	P3                  \=        V4      4      V n        V ;P>                  V	P3                  4       ,          un        \         ^
8¼  d&   \        R\'        V P>                  4      ,          4       EM5V P                  R9   Ed$   \A        V P                  V P                  V P                  4      V n        \         ^
8¼  d&   \        R\'        V P6                  4      ,          4       \C        V P                  V P6                  V P                  W0P                  R7      V n        \         ^
8¼  d&   \        R
\'        V P$                  4      ,          4       \E        V P$                  V P                  VR7      V n        \         ^
8¼  d&   \        R\'        V P*                  4      ,          4       R;V n#        V n$        ^V n        R# )é
   z-StandardEncryption.prepare(...) - revision %dzencryption already prepared!ÚxxxxxxxxxxxxxxxxzuserPassword    = %rzownerPassword   = %rzinternalID      = %rzself.P          = %szuvs      (hex)  = %szuks      (hex)  = %szself.key (hex)  = %s:Né   Nzself.U (hex)  = %s©Úivzself.UE (hex)  = %szself.O (hex)  = %szself.OE (hex)  = %sÚTÚaÚdr$   zself.Perms (hex)  = %szself.O (as hex) = %srP   )r.   Ú
documentIdzself.U (as hex) = %sNl        iÔÿÿÿs                   ©é   é   )%ÚDEBUGÚprintr.   rQ   r0   ÚIDÚ	signatureÚdigestÚ	CLOBBERIDr+   r,   ÚintrL   r8   ÚCLOBBERPERMISSIONSr1   r%   r   r   ÚhexTextr   r7   r/   Ú	EncrypterÚAESModeOfOperationCBCÚfeedr:   r6   r9   Úordr   r;   ÚcomputeOÚencryptionkeyÚcomputeUrR   rT   )r<   ÚdocumentÚ
overrideIDÚ
internalIDÚ
externalIDr]   ÚuvsÚuksÚmdÚ	encrypterÚovsÚoksÚpermsarrs   &&&          r   ÚprepareÚStandardEncryption.preparer   sý  € ä�"Œ9”eÐKÈdÏmÉmÕ[Ô\Ø�=�=ˆ=ÜÐ;Ó<Ð<÷ Ø#‰Jà!Ÿ™›ˆJØ!×+Ñ+×2Ñ2Ó4ˆJç‹yØ/�
ä�"Œ9ÜÐ(¨4×+<Ñ+<Õ<Ô=ÜÐ(¨4×+=Ñ+=Õ=Ô>ÜÐ(¨:Õ5Ô6Ü�T×(Ñ(Ó*¨UÕ2Ó3ˆŒßÓ¨˜tœvÜ�"Œ9ÜÐ(¬4°·±«<Õ7Ô8Ø�=‰=˜AÕð ˆBô ˜Q“-ˆCÜ˜Q“-ˆCô œz¨"›~Ó.ˆDŒHä�bŒyÜÐ,¬w°s«|Õ;Ô<ÜÐ,¬w°s«|Õ;Ô<ÜÐ,¬w°t·x±xÓ/@Õ@ÔAô œ × 1Ñ 1°$Õ 7Ó8¸3Õ>Ó?ˆBØ—Y‘Y“[ 3Õ&¨Õ,ˆDŒFä�bŒyÜÐ*¬W°T·V±V«_Õ<Ô=ô œ × 1Ñ 1°$Õ 7Ó8¸3Õ>Ó?ˆBäŸš¬×(CÒ(CÀBÇIÁIÃKÐTVÔ(WÓXˆIØ—n‘n T§X¡XÓ.ˆDŒGØ�GŠG�y—~‘~Ó'Õ'�Gä�bŒyÜÐ+¬g°d·g±gÓ.>Õ>Ô?ô ˜Q“-ˆCÜ˜Q“-ˆCô œ × 2Ñ 2°4Õ 8Ó9¸CÕ?À$Ç&Á&ÕHÓJˆBØ—Y‘Y“[ 3Õ&¨Õ,ˆDŒFä�bŒyÜÐ*¬W°T·V±V«_Õ<Ô=ô œ × 2Ñ 2°4Õ 8Ó9¸CÕ?À$Ç&Á&ÕHÓIˆBäŸš¬×(CÒ(CÀBÇIÁIÃKÐTVÔ(WÓXˆIØ—n‘n T§X¡XÓ.ˆDŒGØ�GŠG�y—~‘~Ó'Õ'�Gä�bŒyÜÐ+¬g°d·g±gÓ.>Õ>Ô?ð —‘˜tÕ#Ø—‘˜!•˜tÕ#Ø—‘˜"•˜tÕ#Ø—‘˜"•˜tÕ#ØØØØÜ�C“Ü�C“Ü�C“Ü�C“ØØØØð!ˆHô( Ÿš¬×(CÒ(CÀDÇHÁHÐQSÔ(TÓUˆIØ"Ÿ™¬¨h«Ó8ˆDŒJØ�JŠJ˜)Ÿ.™.Ó*Õ*�Jä�bŒyÜÐ.´¸¿¹Ó1DÕDÔEùà�]‰]˜fÕ$Ü˜d×/Ñ/°×1CÑ1CÀTÇ]Á]ÓSˆDŒFä�bŒyÜÐ,¬w°t·v±v«Õ>Ô?ô % T×%6Ñ%6¸¿¹ÀÇÁÈ
×]jÑ]jÔkˆDŒHÜ�bŒyÜÐ,¬w°t·x±xÓ/@Õ@ÔAÜ˜dŸh™h°·±È:ÔVˆDŒFÜ�bŒyÜÐ,¬w°t·v±v«Õ>Ô?à%)Ð)ˆŒ�d”lØˆŽr   c                óX   € V P                   '       g   \        R 4      hWn        W n        R# )rO   N)rQ   r0   rR   rT   )r<   rR   rT   s   &&&r   ÚregisterÚStandardEncryption.registerî   s!   € à�}�}ˆ}ÜÐ7Ó8Ð8ØŒØŽr   c           
     óì   € V P                   '       g   \        R 4      h\        V P                  V P                  V P
                  V P                  V P                  V P                  V P                  R7      # )rO   ©r6   r9   r7   r:   r8   r;   r.   )
rQ   r0   ÚStandardEncryptionDictionaryr6   r9   r7   r:   r8   r;   r.   ©r<   s   &r   ÚinfoÚStandardEncryption.infoô   se   € à�}�}ˆ}ÜÐ7Ó8Ð8Ü+¨d¯f©f¸¿¹ÀDÇFÁFÈtÏwÉwÐZ^×Z`ÑZ`Ðhl×hrÑhrð  ~B÷  ~Kñ  ~Kô  Lð  	Lr   )r6   r9   r8   r;   r7   r:   r5   r4   r3   r2   r   rR   r,   rQ   r.   r+   rT   )Né   r‹   r‹   r‹   Nr   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__rQ   r>   rB   rL   rV   r€   rƒ   r‰   Ú__static_attributes__Ú__classdictcell__©Ú__classdict__s   @r   r'   r'   :   s9   ø‡ € Ø€Hô!UòD!ò
òYô{òx÷Lð Lr   r'   c                   ó0   a € ] tR t^út o ^tR tR tRtV tR# )r‡   c                óf   € WW4WV3w  V n         V n        V n        V n        V n        V n        Wpn        R # r   r†   )r<   r6   r9   r7   r:   r8   r;   r.   s   &&&&&&&&r   r>   Ú%StandardEncryptionDictionary.__init__ü   s,   € Ø@AÀqÈaÐ@VÑ=ˆŒ�”˜$œ& $¤'¨4¬6°4´:Ø Žr   c                óÜ  € ^ RI HpHpHp V! 4       pRV! R4      R\	        V P
                  4      R\	        V P                  4      RV P                  /pV P                  ^8X  dÈ   RVR&   ^VR	&   ^VR
&   \	        V P
                  4      VR&   \	        V P                  4      VR&   \	        V P                  4      VR&   \	        V P                  4      VR&   \	        V P                  4      VR&   V! R4      VR&   V! R4      VR&   R^ RV! R4      RV! R4      /pRV! V4      /pV! V4      VR&   M+V P                  ^8X  d   ^€VR&   ^VR	&   ^VR
&   M
^VR	&   ^VR
&   V! V4      p	V	P                  V4      # )rE   )ÚDummyDocÚPDFDictionaryÚPDFNameÚFilterÚStandardr6   r7   r8   r   ÚLengthÚRÚVr9   r:   r;   ÚStdCFÚStrFÚStmFÚ	AuthEventÚDocOpenÚCFMÚAESV3ÚCF)Úreportlab.pdfbase.pdfdocr˜   r™   rš   rm   r6   r7   r8   r.   r9   r:   r;   Úformat)
r<   ru   r˜   r™   rš   ÚdummyÚdictÚstdcfÚcfÚpdfdicts
   &&        r   r©   Ú#StandardEncryptionDictionary.formatÿ   su  € çMÑMÙ“
ˆØ™' *Ó-Ø”W˜TŸV™V“_Ø”W˜TŸV™V“_Ø�T—V‘Vðˆð �=‰=˜AÔØ ˆD�‰NØˆD�‰IØˆD�‰IÜ §¡›ˆD�‰IÜ §¡›ˆD�‰IÜ  §¡Ó)ˆD�‰JÜ  §¡Ó)ˆD�‰JÜ# D§J¡JÓ/ˆD�‰MÙ" 7Ó+ˆD�‰LÙ" 7Ó+ˆD�‰Là˜"Ø™W YÓ/Ø‘w˜wÓ'ðˆEð ™ uÓ-ðˆBñ ' rÓ*ˆD�ŠJà�]‰]˜aÔØ ˆD�‰NØˆD�‰IØˆD�ŠIàˆD�‰IØˆD�‰IÙ Ó%ˆØ�~‰~˜eÓ$Ð$r   )r6   r9   r8   r;   r7   r:   r.   N)	rŒ   r�   rŽ   r�   Ú__RefOnly__r>   r©   r�   r‘   r’   s   @r   r‡   r‡   ú   s   ø‡ € Ø€Kò!÷&%ð &%r   r‡   za
28 BF 4E 5E 4E 75 8A 41 64 00 4E 56 FF FA 01 08
2E 2E 00 B6 D0 68 3E 80 2F 0C A9 FE 64 53 69 7A
c                óf   € R\        \        \        V 4      4      4      P                  4       ,          # )z'a legitimate way to show strings in PDFz<%s>)r	   r   r   Úupper)Útexts   &r   rm   rm   -  s$   € à”HœW¤X¨d£^Ó4Ó5×;Ñ;Ó=Õ=Ð=r   c                 ón   € \        V ^ ,          RR4       \        V R,          RR4       \        V ^R 4      # )rE   Ú<zbad hex textÚ>éÿÿÿÿ)ÚequalityCheckr   )rm   s   &r   Ú	unHexTextr¹   1  s3   € Ü�'˜!•*˜c >Ô2Ü�'˜"•+˜s NÔ3Ü�W˜Q˜r�]Ó#Ð#r   Ú c              #   óL   "  € T F  p\        \        V^4      4      x € K  	  R# 5i)é   N)Úchrrk   )r   Úcs   & r   r   r   6  s   é € ÐNÑ6M°œS¤ Q¨£Ÿ_˜_Ó6Mùs   ‚"$c                 óÔ   € V fd   \         P                  pV^(8X  d   ^p V # V^€8X  d   ^p V # VR8X  d   \        '       g   \        R4      h^p V # \        R\	        V4      ,          4      hV # )Nr   r)   r*   )r   r-   r/   r0   r1   )r.   r=   s   & r   ÚcheckRevisionrÀ   8  s}   € ØÒÜ×/Ñ/ˆØ�rŒ>ØˆHð €Oð ˜Œ_ØˆHð €Oð ˜Œ_ß“5Ü Ð!dÓeÐeØˆHð €Oô Ð=ÄÀXÃÕNÓOÐOØ€Or   c                 óú  € \        V4      p\        V 4      \        ,           p V R ,          p TpRp\        ^4       F.  pV^ÿ,          pV^,	          pV\	        VR,          4      ,          pK0  	  \        \        V 4      4      p	V	P                  \        V4      4       V	P                  \        V4      4       V	P                  \        V4      4       V	P                  4       p
V^8X  d   V
R,          pM;V^8X  d5   \        ^24       F  p\        V
4      P                  4       p
K  	  V
R,          p\        ^
8¼  dB   \        R\        WW#VX3 Uu. uF  p\        \        V4      4      NK  	  up4      ,          4       X# u upi )ºNé    Nr   r   ºNé   NºNr¼   Nz"encryptionkey(%s,%s,%s,%s,%s)==>%s)rÀ   r   Ú	PadStringr   r   r   Úupdateri   re   rf   Útuplerm   Ústr)ÚpasswordÚOwnerKeyÚPermissionsÚFileId1r.   rK   ÚpermissionsStringr#   ÚbyteÚhashÚ	md5outputr   Úxs   &&&&&        r   rs   rs   G  sh  € Ü˜XÓ&€Hô
 �xÓ ¤9Õ,€Hà˜�}€Hà€AØÐÜ�1ŽXˆØ�D•ˆØˆq�DˆØœX d¨S¥jÓ1Õ1Òñ ô
 Œw�xÓ Ó!€DØ‡K�K”˜Ó!Ô"Ø‡K�K”Ð)Ó*Ô+Ø‡K�K”˜Ó Ô!à—‘“€Ià�„{Ø˜�m‰Ø	�1ŒÜ�r–ˆAÜ˜I›×-Ñ-Ó/ŠIñ à˜�nˆÜˆb„y”%Ð<¼uÐ`hÐtð  KSð  UXñ  `Yó  FZñ  `YÐZ[ÄgÌcÐRSËfÆoñ  `Yñ  FZó  @[õ  [ô  \Ø€Jùò FZs   ÅE8c                 óŠ  € ^ RI Hp VR9   g   Q RV,          4       hV'       g   T p\        V4      \        ,           pVR,          p\        V 4      \        ,           pVR,          p\	        V4      P                  4       p\        ^
8¼  dU   \        R\        \        4      : R\        V4      : R\        V4      : R\        V4      : R	\        V4      : R
V: 24       V^8X  d    V! VR,          4      P                  V4      pMqV^8X  dk   \        ^24       F  p	\	        V4      P                  4       pK  	  VR,          pTp\        ^4       F%  p	\        W—4      p
V! V
4      P                  V4      pK'  	  \        ^
8¼  dA   \        R\        WVX3 Uu. uF  p\        \        V4      4      NK  	  up4      ,          4       X# u upi )rE   ©ÚArcIVzUnknown algorithm revision %s:rE   rÃ   NrÂ   z
PadString=z

ownerPad=z

password=z	
userPad=z
digest=z

revision=rÄ   rÆ   zcomputeO(%s,%s,%s)==>%srb   )Úreportlab.lib.arcivrÖ   r   rÇ   r   ri   re   rf   ÚasciirV   r   r   rÉ   rm   rÊ   )r+   r,   r.   rÖ   ÚownerPadrË   ÚuserPadri   r6   r#   ÚthisKeyrÓ   s   &&&         r   rr   rr   h  sª  € Ý)à�uÔÐHÐ=ÀÕHÓHÐßØ$ˆä�}Ó%¬	Õ1€HØ˜�~€Hä�|Ó$¤yÕ0€HØ�s�m€Gä�‹]×!Ñ!Ó#€FÜˆb„y•%ÔhmÔnwÖhxÔy~ð  @Hö  zIô  JOð  PXö  JYô  Z_ð  `gö  Zhô  inð  ouö  ivò  wð  @ô  AØ�1„}Ù�&˜•*Ó×$Ñ$ WÓ-‰Ø	�QŒÜ�r–ˆAÜ˜“[×'Ñ'Ó)ŠFñ à˜•ˆØˆÜ�r–ˆAÜ˜QÓ'ˆGÙ�g“×%Ñ% aÓ(ŠAñ ô ˆb„y”%Ð1´EÐUaÐrzÐ{|ÑT}Ó:~ÑT}Èq¼7Ä3ÀqÃ6¾?ÑT}Ñ:~Ó4Õô  AØ€Hùò ;s   ÆG c                 ón  € \        V4      p^ RIHp V^8X  d   V! V 4      P                  V4      pM´V^8X  d®   Vf   Q R4       h\	        \
        4      pVP                  \        V4      4       VP                  4       pV! V 4      P                  V4      p\        ^^4       F%  p\        W€4      p	V! V	4      P                  V4      pK'  	  \        V4      ^ 8  d   VR,          pK  Tp\        ^
8¼  dA   \        R\        WW#X3 U
u. uF  p
\        \!        V
4      4      NK  	  up
4      ,          4       X# u up
i )rE   rÕ   z+Revision 3 algorithm needs the document ID!ó    zcomputeU(%s,%s,%s,%s)==>%s)rÀ   r×   rÖ   rV   r   rÇ   rÈ   r   ri   r   r   Úlenre   rf   rÉ   rm   rÊ   )rs   Úencodestringr.   ra   rÖ   ÚresultÚhÚtmpr"   rÛ   rÓ   s   &&&&       r   rt   rt   „  s.  € Ü˜XÓ&€HÝ)Ø�1„}Ù�}Ó%×,Ñ,¨\Ó:‰Ø	�QŒØÒ%ÐTÐ'TÓTÐ%Ü”	‹NˆØ	�‰”˜*Ó%Ô&Ø�h‰h‹jˆÙ�MÓ"×)Ñ)¨#Ó.ˆÜ�q˜–ˆAÜ˜QÓ.ˆGÙ˜“.×'Ñ'¨Ó,ŠCñ ô �#‹h˜ŒmØ�5�LŠCØˆÜˆb„y”%Ð4´uÐXeÐt|ð  IOñ  XPó  >Qñ  XPÐRS¼gÄcÈ!Ãf¾oñ  XPñ  >Qó  8Rõ  Rô  SØ€Mùò >Qs   ÄD2c                 ó˜   € \        W4      pV\        8w  d4   \        V4      \        \        4      8w  d   \        R 4      h\        R4      hR# )z&lengths don't match! (password failed)z;decode of U doesn't match fixed padstring (password failed)N)rt   rÇ   rÞ   r0   )rs   r7   Údecodeds   && r   ÚcheckUrå   ˜  sA   € Ü�}Ó(€Gà”	ÔÜˆw‹<œœY›Ô'ÜÐEÓFÐFÜÐVÓWÐWñ r   c                ó*  € \        V4      pVR9   dÀ   T pTp\        ^4       F%  pV\        V^ÿ,          4      ,          pV^,	          pK'  	  Tp\        ^4       F%  pV\        V^ÿ,          4      ,          pV^,	          pK'  	  \        V4      P	                  4       pV^8X  d   VR,          p M	V^8X  d   Tp ^ RIHp	 V	! V 4      P                  V4      p
MðV^8X  dê   \        ^4      p\        P                  ! \        P                  ! WR7      4      p\        V4      pRpV^8”  d   ^V^,          ,
          M^V,
          pV^ 8”  d   \        V4      V,          p\        V\        4      '       d   W>,           P                  R4      pMV\!        V4      ,          pW¼P#                  V4      ,           p
W¬P#                  4       ,          p
\$        ^
8¼  dB   \'        R\)        WW#VX
3 Uu. uF  p\+        \        V4      4      NK  	  up4      ,          4       X
# u upi )zEncodes a string or stream:NrY   NrÕ   r\   rº   zutf-8zencodePDF(%s,%s,%s,%s,%s)==>%srb   )rÀ   r   r   r   ri   r×   rÖ   rV   r%   r/   rn   ro   rÞ   r½   Ú
isinstancerÊ   r   rp   re   rf   rÉ   rm   )r   ÚobjectNumberÚgenerationNumberÚstringr.   Únewkeyr"   r#   rÒ   rÖ   Ú	encryptedr]   r|   Ú
string_lenÚpaddingÚpadding_lenrÓ   s   &&&&&            r   rS   rS      sì  € ä˜XÓ&€Hð �5ÔØˆØˆÜ�q–ˆAØ”h˜q 4�xÓ(Õ(ˆFØ�1•ŠAñ ð ˆÜ�q–ˆAØ”h˜q 4�xÓ(Õ(ˆFØ�1•ŠAñ ô ˜“K×&Ñ&Ó(ˆ	Ø�qŒ=Ø˜C•.‰CØ˜Œ]ØˆCÝ-Ù˜#“J×%Ñ% fÓ-‰	à	�QŒÜ˜‹^ˆÜ—O’O¤E×$?Ò$?ÀÔ$KÓLˆ	ô ˜“[ˆ
ØˆØ2<¸r´/�r˜Z¨"�_Ö-ÈÈZÍˆØ˜Œ?Ü˜+Ó&¨Õ4ˆGä�fœc×"Ò"ØÕ&×.Ñ.¨wÓ7‰Fà”g˜gÓ&Õ&ˆFàŸ™¨Ó/Õ/ˆ	Ø—^‘^Ó%Õ%ˆ	äˆb„y”%Ð8¼5Ð\_Ðoð  JRð  S\ñ  \]ó  B^ñ  \]ÐVWÄ'Ì#ÈaË&Æ/ñ  \]ñ  B^ó  <_õ  _ô  `ØÐùò B^s   Ç Hc                 ó6   € W8X  g   Q V: R V: RV : 24       hR# )z
 expected=z
 observed=Nr   )ÚobservedÚexpectedÚlabels   &&&r   r¸   r¸   Î  s   € ØÔÐZÃ%ËÒQYÐZÓZÒr   c                  ó"  € \        R R^(R7      p V P                  RRR7       RpRpRp\        \        V P                  4      VR	4       \        \        V P
                  4      VR
4       \        \        V P                  4      VR4       \        RR^€R7      p V P                  RRR7       RpRpRp\        \        V P                  4      VR4       \        \        V P
                  4      VR4       \        \        V P                  4      VR4       R# )ÚUserÚOwner©r=   NrZ   )rv   zB<FA7F558FACF8205D25A7F1ABFA02629F707AE7B0211A2BB26F5DF4C30F684301>zB<09F26CF46190AF8F93B304AD50C16B615DC43C228C9B2D2EA34951A80617B2B1>z<BB2C00EB3D>z40 bit O valuez40 bit U valuez40 bit key valueÚuserpassÚ	ownerpasszB<68E5704AC779A5F0CD89704406587A52F25BF61CADC56A0F8DB6C4DB0052534D>zB<A9AE45CDE827FE0B7D6536267948836A00000000000000000000000000000000>z"<13DDE7585D9BE366C976DDD56AF541D1>z128 bit O valuez128 bit U valuez128 key value)r'   r€   r¸   rm   r6   r7   r   )ÚencÚ	expectedOÚ	expectedUÚexpectedKeys       r   Útestrþ   Õ  sß   € ä
˜V G°bÔ
9€CØ‡K�K�Ð!3€KÔ4àT€IØT€IØ €Kä”'˜#Ÿ%™%“. Ð,<Ô=Ü”'˜#Ÿ%™%“. Ð,<Ô=Ü”'˜#Ÿ'™'Ó" ;Ð0BÔCô ˜Z¨¸cÔ
B€CØ‡K�K�Ð#5€KÔ6àT€IØT€IØ6€Kä”'˜#Ÿ%™%“. )Ð->Ô?Ü”'˜#Ÿ%™%“. )Ð->Ô?Ü”'˜#Ÿ'™'Ó" K°ÖAr   c           
     óD   € \        WW4WVVR7      pW€P                  n        R# )z2Applies encryption to the document being generatedr÷   N)r'   Ú_docÚencrypt)	Úcanvasr+   r,   r2   r3   r4   r5   r=   rú   s	   &&&&&&&& r   ÚencryptCanvasr  ô  s$   € ô ˜\Ø%°'Ø&.ô0€Cð ‡K�KÖr   c                   ó0   a € ] tR tRt o RtR tR tRtV tR# )ÚEncryptionFlowablei  zŽDrop this in your Platypus story and it will set up the encryption options.

If you do it multiple times, the last one before saving will win.c                ó   € R# )rE   )rE   rE   r   )r<   Ú
availWidthÚavailHeights   &&&r   ÚwrapÚEncryptionFlowable.wrap  s   € Øˆr   c           	     ó´   € \        V P                  V P                  V P                  V P                  V P
                  V P                  V P                  4       R # r   )r  Úcanvr+   r,   r2   r3   r4   r5   rˆ   s   &r   ÚdrawÚEncryptionFlowable.draw	  s@   € Ü�d—i‘iØ×'Ñ'Ø×(Ñ(Ø—m‘mØ—n‘nØ—l‘lØ×&Ñ&ö	(r   r   N)	rŒ   r�   rŽ   r�   Ú__doc__r	  r  r�   r‘   r’   s   @r   r  r    s   ø‡ € ñIò÷(ð (r   r  c                ó   € \        R4      h)z*For use in Platypus.  Call before build().zNot implemented yet)Ú	Exception)Údtr+   r,   r2   r3   r4   r5   r=   s   &&&&&&&&r   ÚencryptDocTemplater    s   € ô
 Ð)Ó
*Ð*r   c                ó  €  ^ RI HpHp	 T! T ^^R7      w  r«\	        T
P                  4       4      pT
R,          R,          p\        4       p\        YíR7      p\        '       d   RTP                  n
        T	! Y¿4      pT FC  pTP                  T
T,          R,          4       TP                  T4       TP                  4        KE  	  \        TYY4YVTR7       TP                  4        TP!                  4       #   \         d    \        R4      hi ; i)	a  accepts a PDF file 'as a byte array in memory'; return encrypted one.

This is a high level convenience and does not touch the hard disk in any way.
If you are encrypting the same file over and over again, it's better to use
pageCatcher and cache the results.)ÚstoreFormsInMemoryÚrestoreFormsInMemoryz~reportlab.lib.pdfencrypt.encryptPdfInMemory failed because rlextra cannot be imported.
See https://www.reportlab.com/downloads)ÚallÚBBoxesÚ
PageForms0:rc   NN)Úpagesizez&[(xxxxxxxxxxxxxxxx)(xxxxxxxxxxxxxxxx)]r÷   )Úrlextra.pageCatcher.pageCatcherr  r  ÚImportErrorÚlistÚkeysr   r
   rj   r   Ú_IDÚsetPageSizeÚdoFormÚshowPager  ÚsaveÚgetvalue)ÚinputPDFr+   r,   r2   r3   r4   r5   r=   r  r  ÚbboxInfoÚpickledFormsÚnamesÚfirstPageSizeÚbufr  Ú	formNamesÚformNames   &&&&&&&&          r   ÚencryptPdfInMemoryr-    só   € ð,ß\ñ
  2°(ÀÈ!ÔLÑ€XÜ�—‘“Ó!€Eà˜\Õ*¨2Õ.€Mô ‹)€CÜ�#Ô.€D÷ ƒyØ@ˆ�	‰	Œá$ \Ó8€IÛˆØ×Ñ˜ (Õ+¨BÕ/Ô0Ø�‰�HÔØ�‰Žñ ô �$ØØ wØ#õ%ð 	‡I�I„KØ�<‰<‹>Ðøô7 ô ,Üð +ó ,ð 	,ð,ús   ‚C4 Ã4Dc	                ó¢   € \        V R4      P                  4       p	\        V	W#WEWgVR7      p
\        VR4      P                  V
4       \	        V
4      # )z>Creates encrypted file OUTPUTFILENAME.  Returns size in bytes.Úrbr÷   Úwb)ÚopenÚreadr-  ÚwriterÞ   )ÚinputFileNameÚoutputFileNamer+   r,   r2   r3   r4   r5   r=   r%  Ú	outputPDFs   &&&&&&&&&  r   ÚencryptPdfOnDiskr7  E  sQ   € ô �M 4Ó(×-Ñ-Ó/€HÜ" 8ØØ wØ,4ô6€Iô 	ˆ˜Ó×$Ñ$ YÔ/Üˆy‹>Ðr   c                  ó2	  € \         P                  R ,          p Rp. REOpRpRp^p^p^p^pRp	V ^ ,          p
\        V 4      R,          p\        V4      ^ 8”  Ed   V^ ,          R8X  g   V^ ,          R8X  d   \	        V4       R# \        V4      ^8  d   \        R4      hV^ ,          V9  dK   V^ ,          pVR,          p\        P                  P                  V4      '       g   \        RV,          4      hM\        R4      h^(pRF F*  w  rïV F  pVV9   g   K  TpVP                  V4       K!  	  K,  	  RV9   g   RV9   d�   RV9   d   VP                  R4      pRpMRV9   d   VP                  R4      pRp \        VX^,           ,          4      pTP                  TX^,           ,          4       TP                  X4       M^ RIHp RRVR3RRVR3RRVR3RRVR3RR VR!3RR VR!3RR"VR#3R	R"VR#3R
R$VR%3RR$VR%3RR&VR'3RR&VR'3RR(V	R)3RR(V	R)33pRGpV EF;  pV^ ,          V9   g   K  VP                  V^ ,          4      pV^ ,          V9   d/   VV^,           ,          RH9  d   \        R*V^,          ,          4      h VV^,           ,          V9  d¾   V^ ,          V9   d$   \        V^,          R+,           \        4       4       M"\        V^,          R,,           \        4       4       V'       d)   \	        V^,          : R-VV^,           ,          : R.24       VP                  VV^,           ,          4       VP                  V^ ,          4       EK;  EK>  	  V^8”  d…   \	        R0V4       \	        R1V4       \	        R2V	4       \	        R3V4       \	        R4V4       \	        R5V4       \	        R6V4       \	        R7V4       \	        R8V4       \	        R2V	4       \	        R9V4       V	R8X  d&   VRIR R:8X  g   VRIR R;8X  d   VRRI pMTpVR<,           p	\!        WÉWCWVWxVR=7	      pV'       d   \	        R>V	: R?V: R@V: RAV: RB2	4       \        V4      ^ 8”  d    \        RC\#        V4      ^RJ : RDV: 24      hR# \	        V4       R#    ^p ELó; i   R/T^,          ,          h; i)K:NNNan  PDFENCRYPT USAGE:

PdfEncrypt encrypts your PDF files.

Line mode usage:

% pdfencrypt.exe pdffile [-o ownerpassword] | [owner ownerpassword],
	[-u userpassword] | [user userpassword],
	[-p 1|0] | [printable 1|0],
	[-m 1|0] | [modifiable 1|0],
	[-c 1|0] | [copypastable 1|0],
	[-a 1|0] | [annotatable 1|0],
	[-s savefilename] | [savefile savefilename],
	[-v 1|0] | [verbose 1|0],
	[-e128], [encrypt128],
	[-h] | [help]

-o or owner set the owner password.
-u or user set the user password.
-p or printable set the printable attribute (must be 1 or 0).
-m or modifiable sets the modifiable attribute (must be 1 or 0).
-c or copypastable sets the copypastable attribute (must be 1 or 0).
-a or annotatable sets the annotatable attribute (must be 1 or 0).
-s or savefile sets the name for the output PDF file
-v or verbose prints useful output to the screen.
      (this defaults to 'pdffile_encrypted.pdf').
'-e128' or 'encrypt128' allows you to use 128 bit encryption (in beta).
'-e256' or 'encrypt256' allows you to use 256 bit encryption (in beta AES).

-h or help prints this message.

See PdfEncryptIntro.pdf for more information.
ú-oÚownerú-uÚuserú-prF   ú-mrG   ú-crH   ú-arI   ú-sÚsavefileú-vÚverboseú-hÚhelprº   zencrypted.pdf:r‹   NNNz2Must include a filename and one or more arguments!zCan't open input file '%s'!z2First argument must be name of the PDF input file!)rD  ÚOWNERzOwner passwordÚUSERzUser passwordÚ	PRINTABLEz'Printable'Ú
MODIFIABLEz'Modifiable'ÚCOPYPASTABLEz'Copypastable'ÚANNOTATABLEz'Annotatable'ÚSAVEFILEzOutput filez#%s value must be either '1' or '0'!z = int(argv[pos+1])z = argv[pos+1]z
 set to: 'z'.zUnable to set %s.z
infile:z	STRENGTH:z	SAVEFILE:zUSER:zOWNER:z
PRINTABLE:zMODIFIABLE:zCOPYPASTABLE:zANNOTATABLE:zVERBOSE:z.pdfz.PDFz_encrypted.pdfr÷   zwrote output file 'z'(z bytes)
  owner password is 'z'
  user password is 'Ú'z
Unrecognised arguments : z
known arguments are:
)r9  r:  r;  r<  r=  rF   r>  rG   r?  rH   r@  rI   rA  rB  rC  rD  rE  rF  ú-e128Ú
encrypt128ú-e256Ú
encryptAES))é€   )rO  rP  )r   )rQ  Ú
encrypt256)r=  rF   r>  rG   rH   r?  rI   r@  )Ú1Ú0éüÿÿÿr·   )ÚsysÚargvr  rÞ   rf   r0   ÚosÚpathÚisfileÚremoveÚindexrk   Úreportlab.rl_configrD  ÚexecÚvarsr7  rÊ   )Úsys_argvÚusageÚknown_modesrG  rH  rI  rJ  rK  rL  rM  ÚcallerrY  ÚinfileÚSTRENGTHÚsÚ_ar_   ÚposÚargrD  ÚarglistÚbinaryrequiredÚthisargÚtinfileÚfilesizes                            r   ÚscriptInterprq  T  sª  € Ü�x‰x˜�{€Hð €EòD€Kð €EØ€DØ€IØ€JØ€LØ€KØ"€Hð �a�[€FÜ�‹>˜"Õ€DÜ
ˆ4ƒy�…{Ø��7�dŒ?˜d 1�g¨Ô/Ü�%ŒLÙÜˆt‹9�QŒ;ÜÐQÓRÐRØ��7˜+Ô%Ø˜!•WˆFØ˜•8ˆDÜ—7‘7—>‘> &×)Ò)Ü Ð!>ÀÕ!GÓHÐHð *ô ÐQÓRÐRð ˆÛQ‰FˆQÛ�Ø˜–9Ø �HØ—K‘K –Nó ñ Rð �DŒL˜i¨4Ô/Ø�tŒ|Ø—j‘j Ó&�Ø‘Ø˜dÔ"Ø—j‘j Ó+�Ø�ðÜ˜d 3 q¥5�kÓ*�ð �K‰K˜˜S �U�Ô$Ø�K‰K˜Õå3ð ˜' 5Ð*:Ð;Ø˜W eÐ-=Ð>Ø˜& $¨Ð8Ø˜F D¨/Ð:Ø˜+ y°-Ð@Ø ¨i¸ÐGØ˜,¨
°NÐCØ  ,°¸^ÐLØ˜.¨,Ð8HÐIØ" N°LÐBRÐSØ˜-¨°oÐFØ! =°+¸ÐOØ˜* h°Ð>Ø 
¨H°mÐDðˆð  lˆäˆGØ�q�z˜TÖ!Ø—j‘j ¨¥Ó,�Ø˜1•: Ô/Ø˜C �E•{¨*Ô4Ü(Ð)NÐQXÐYZÕQ[Õ)[Ó\Ð\ð;Ø˜C �E•{¨+Ô5Ø" 1�:¨Ô7Ü  ¨¥Ð-BÕ!BÄ4Ã6ÕJä  ¨¥Ð-=Õ!=¼d»fÔEß"Ü!¸À¿
¸
ÀDÈÈQÍÇKÀKÐ"PÔQØŸ™ D¨¨Q­¥KÔ0ØŸ™ G¨A¥J×/ò 6ñ ð& �1Œ9ä�+˜vÔ&Ü�+˜xÔ(Ü�+˜xÔ(Ü�'˜4Ô Ü�(˜EÔ"Ü�, 	Ô*Ü�- Ô,Ü�/ <Ô0Ü�. +Ô.Ü�+˜xÔ(Ü�*˜gÔ&ð �Ô&Ø�b�cˆ{˜fÔ$¨¨r¨s¨°vÔ(=Ø   "˜+‘à �ØÐ/Õ/ˆHä# F°dØ¨Ø-5ô7ˆ÷ ÝÓksÓu}ó  @Eó  GKð  Lô  Mäˆt‹9�QŒ;ÝÔZ]Ð^bÓZcÐdeÐfhÓZiÒkvÐwÓxÐxñ ô 	ˆeŽøð[Ø“ûðR;Ø-°¸µ
Õ:Ð:ús    Å5Q: É:A/RË*ARÑ:RÒRc                  ó   € \        4        R # r   )rq  r   r   r   Úmainrs  ÿ  s   € Ü†Nr   Ú__main__:Né   Nz--debugz--testr   )Nr‹   r‹   r‹   r‹   é(   )IÚ__version__rX  rZ  Úbinasciir   r   Úhashlibr   Úior   Úreportlab.lib.utilsr   r   r   r	   Úreportlab.pdfgen.canvasr
   r¨   r   Úreportlab.platypus.flowablesr   Ú	reportlabr   r/   r   r  r   rj   rl   Údebugre   Ú	reserved1Ú	reserved2rF   rG   rH   rI   rJ   r   r#   Ú	invariantr!   r    r%   Úurandomr'   r‡   rî   rm   r¹   ÚjoinÚstripÚsplitrÇ   rÀ   rs   rr   rt   rå   rS   r¸   rþ   r  r  r  r-  r7  rq  rs  rŒ   rY  r_   rÞ   )rÓ   s   0r   Ú<module>r‡     s  ðð €à +ß ß 'Ý Ý ç EÓ EÝ *Ý .Ý 1Ý ðÛÝò%ð €	ØÐ Ø�‰€ð €	Ø€	Ø€	Ø€
Ø€Ø€à€
Ù	ˆq�Ž€AØ˜q !�tÕ$‚Jñ 
ð ××ÐØ€Lð |€Lóð —‘€J÷~Lñ ~Lô@+% 9ô +%ð\€ò
>ò$ñ
 �R—W‘WÑN°g·m±m³o×6KÑ6KÔ6MÓNÓNÓO€	òôòBð8 *3¸DÈDô ò(Xô,ò\[òBô>	ô(Ð+¨Xô (ô&+ô'ôRòiòVð ˆZÔØ—H’HÓ1‘Hˆq "¥ yÑ 0�ˆ‘HÑ1€AßØ"ŸxšxÓ<™x˜!¨R­5°)Ñ+;—A�A™xÑ<ˆŒÙ�A“ˆØ�3—8‘8Ô™TžVÙ
Ž&ñ øð] ô ØƒEðüò^ 	2ùâ<s*   Á
G+ Å)G;Å=G;ÆH Æ0H Ç+	G8Ç7G8