Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325
3 \šOã@sždZddlZddlZddlZddddddd d d d d dddddddgZeefZdd„ZdCdd„Z dDdd„Z dd„Z dd„Z ej ddƒZej ddƒZdd„Zdd„Zd Zdadad!d „ZdEd"d „Zd#d „ZdFd$d „Zdadad%Zd&ZdGd'd(„Zddddd)œd*d„Zddd+d,œd-d„Zd.Z da!da"da#dHd/d „Z$d0d„Z%d1Z&e&d2d3Z'd4d„Z(d5d„Z)d6d7„Z*d8d„Z+d9d:„Z,d;d„Z-dd?„Z/d@dA„Z0e1dBk�rše/ƒdS)IzDBase16, Base32, Base64 (RFC 3548), Base85 and Ascii85 data encodingséNÚencodeÚdecodeÚ encodebytesÚ decodebytesÚ b64encodeÚ b64decodeÚ b32encodeÚ b32decodeÚ b16encodeÚ b16decodeÚ b85encodeÚ b85decodeÚ a85encodeÚ a85decodeÚstandard_b64encodeÚstandard_b64decodeÚurlsafe_b64encodeÚurlsafe_b64decodecCsxt|tƒr2y |jdƒStk r0tdƒ‚YnXt|tƒr@|Sy t|ƒjƒStk rrtd|j j ƒd‚YnXdS)NÚasciiz4string argument should contain only ASCII charactersz>argument should be a bytes-like object or ASCII string, not %r) Ú isinstanceÚstrrÚUnicodeEncodeErrorÚ ValueErrorÚ bytes_typesÚ memoryviewÚtobytesÚ TypeErrorÚ __class__Ú__name__)Ús©r ú/usr/lib64/python3.6/base64.pyÚ_bytes_from_decode_data"s    r"cCsDtj|dd�}|dk r@t|ƒdks.tt|ƒƒ‚|jtjd|ƒƒS|S)a*Encode the bytes-like object s using Base64 and return a bytes object. Optional altchars should be a byte string of length 2 which specifies an alternative alphabet for the '+' and '/' characters. This allows an application to e.g. generate url or filesystem safe Base64 strings. F)ÚnewlineNés+/)ÚbinasciiÚ b2a_base64ÚlenÚAssertionErrorÚreprÚ translateÚbytesÚ maketrans)rÚaltcharsÚencodedr r r!r3s FcCsht|ƒ}|dk rBt|ƒ}t|ƒdks0tt|ƒƒ‚|jtj|dƒƒ}|r^tjd|ƒ r^t j dƒ‚t j |ƒS)anDecode the Base64 encoded bytes-like object or ASCII string s. Optional altchars must be a bytes-like object or ASCII string of length 2 which specifies the alternative alphabet used instead of the '+' and '/' characters. The result is returned as a bytes object. A binascii.Error is raised if s is incorrectly padded. If validate is False (the default), characters that are neither in the normal base-64 alphabet nor the alternative alphabet are discarded prior to the padding check. If validate is True, these non-alphabet characters in the input result in a binascii.Error. Nr$s+/s^[A-Za-z0-9+/]*={0,2}$zNon-base64 digit found) r"r'r(r)r*r+r,ÚreÚmatchr%ÚErrorÚ a2b_base64)rr-Zvalidater r r!rAs cCst|ƒS)zrEncode bytes-like object s using the standard Base64 alphabet. The result is returned as a bytes object. )r)rr r r!rZscCst|ƒS)aQDecode bytes encoded with the standard Base64 alphabet. Argument s is a bytes-like object or ASCII string to decode. The result is returned as a bytes object. A binascii.Error is raised if the input is incorrectly padded. Characters that are not in the standard alphabet are discarded prior to the padding check. )r)rr r r!rass+/s-_cCst|ƒjtƒS)zèEncode bytes using the URL- and filesystem-safe Base64 alphabet. Argument s is a bytes-like object to encode. The result is returned as a bytes object. The alphabet uses '-' instead of '+' and '_' instead of '/'. )rr*Ú_urlsafe_encode_translation)rr r r!roscCst|ƒ}|jtƒ}t|ƒS)aÎDecode bytes using the URL- and filesystem-safe Base64 alphabet. Argument s is a bytes-like object or ASCII string to decode. The result is returned as a bytes object. A binascii.Error is raised if the input is incorrectly padded. Characters that are not in the URL-safe base-64 alphabet, and are not a plus '+' or slash '/', are discarded prior to the padding check. The alphabet uses '-' instead of '+' and '_' instead of '/'. )r"r*Ú_urlsafe_decode_translationr)rr r r!rxs  s ABCDEFGHIJKLMNOPQRSTUVWXYZ234567csBtdkr,dd„tDƒ‰‡fdd„ˆDƒad‰t|tƒsBt|ƒjƒ}t|ƒd}|rb|dd|}tƒ}tj }t}xjt dt|ƒdƒD]V}||||d…dƒ}|||d ?||d ?d @||d ?d @||d @7}q„W|d krôd|dd…<nF|dk�r d|dd…<n.|dk�r$d|dd…<n|dk�r:d|dd…<t |ƒS)zKEncode the bytes-like object s using Base32 and return a bytes object. NcSsg|]}t|fƒ‘qSr )r+)Ú.0Úir r r!ú •szb32encode..csg|]}ˆD] }||‘q qSr r )r5ÚaÚb)Úb32tabr r!r7–séórÚbigééiÿé és======ér$s====éés===ó=iúÿÿÿéüÿÿÿéýÿÿÿéÿÿÿÿ) Ú_b32tab2Ú _b32alphabetrrrrr'Ú bytearrayÚintÚ from_bytesÚranger+)rÚleftoverr.rMZb32tab2r6Úcr )r:r!rŽs4   *    c Csœtdkrdd„ttƒDƒat|ƒ}t|ƒdr8tjdƒ‚|dk rvt|ƒ}t|ƒdks`tt|ƒƒ‚|j t j dd|ƒƒ}|r‚|j ƒ}t|ƒ}|j d ƒ}|t|ƒ}tƒ}t}x‚td t|ƒdƒD]n}|||d…}d } y"x|D]} | d >|| } qÜWWn"tk �rtjd ƒd‚YnX|| jd d ƒ7}q¼W|d�sB|dk�rLtjdƒ‚|�r”|�r”| d |K} | jd d ƒ} dd |d} | d| …|dd…<t |ƒS)aZDecode the Base32 encoded bytes-like object or ASCII string s. Optional casefold is a flag specifying whether a lowercase alphabet is acceptable as input. For security purposes, the default is False. RFC 3548 allows for optional mapping of the digit 0 (zero) to the letter O (oh), and for optional mapping of the digit 1 (one) to either the letter I (eye) or letter L (el). The optional argument map01 when not None, specifies which letter the digit 1 should be mapped to (when map01 is not None, the digit 0 is always mapped to the letter O). For security purposes the default is None, so that 0 and 1 are not allowed in the input. The result is returned as a bytes object. A binascii.Error is raised if the input is incorrectly padded or if there are non-alphabet characters present in the input. NcSsi|]\}}||“qSr r )r5ÚkÚvr r r!ú Êszb32decode..ézIncorrect paddingrAs01óOrErr;zNon-base32 digit foundr=rDrCrBé+>rrArDrCrBéûÿÿÿ)Ú_b32revÚ enumeraterJr"r'r%r1r(r)r*r+r,ÚupperÚrstriprKrNÚKeyErrorÚto_bytes) rÚcasefoldZmap01ÚlZpadcharsÚdecodedZb32revr6ZquantaÚaccrPZlastrOr r r!r ´sB         cCstj|ƒjƒS)zKEncode the bytes-like object s using Base16 and return a bytes object. )r%ZhexlifyrZ)rr r r!r ÷scCs4t|ƒ}|r|jƒ}tjd|ƒr*tjdƒ‚tj|ƒS)a‚Decode the Base16 encoded bytes-like object or ASCII string s. Optional casefold is a flag specifying whether a lowercase alphabet is acceptable as input. For security purposes, the default is False. The result is returned as a bytes object. A binascii.Error is raised if s is incorrectly padded or if there are non-alphabet characters present in the input. s [^0-9A-F]zNon-base16 digit found)r"rZr/Úsearchr%r1Z unhexlify)rr^r r r!r ýs   s<~s~>c s®t|tƒst|ƒjƒ}t|ƒ d}|r4|d|}tjdt|ƒdƒj|ƒ}‡‡‡‡fdd„|Dƒ}|r¤| r¤|d dkrŽˆdd |d <|d d| …|d<d j|ƒS)NrCr<z!%dIcsRg|]J}ˆr| rdn6ˆr&|dkr&dn&ˆ|dˆ|ddˆ|d‘qS)ózi óyií^ éUi9r )r5Zword)ÚcharsÚchars2ÚfoldnulsÚ foldspacesr r!r7!sz_85encode..rArcrr;órHrHrHrH) rrrrr'ÚstructÚStructÚunpackÚjoin) r9rfrgÚpadrhriÚpaddingZwordsÚchunksr )rfrgrhrir!Ú _85encodes     rr)riÚwrapcolroÚadobecsºtdkr*dd„tddƒDƒadd„tDƒat|tt|d|ƒ‰|rHtˆ‰ˆrªt|rVdnd ˆƒ‰‡‡fd d„td tˆƒˆƒDƒ}|r t|dƒdˆkr |jd ƒd j|ƒ‰|r¶ˆt 7‰ˆS)aÜEncode bytes-like object b using Ascii85 and return a bytes object. foldspaces is an optional flag that uses the special short sequence 'y' instead of 4 consecutive spaces (ASCII 0x20) as supported by 'btoa'. This feature is not supported by the "standard" Adobe encoding. wrapcol controls whether the output should have newline (b'\n') characters added to it. If this is non-zero, each output line will be at most this many characters long. pad controls whether the input is padded to a multiple of 4 before encoding. Note that the btoa implementation always pads. adobe controls whether the encoded byte sequence is framed with <~ and ~>, which is used by the Adobe implementation. NcSsg|]}t|fƒ‘qSr )r+)r5r6r r r!r7Dsza85encode..é!évcSsg|]}tD] }||‘q qSr )Ú _a85chars)r5r8r9r r r!r7EsTr$rAcsg|]}ˆ||ˆ…‘qSr r )r5r6)Úresultrsr r!r7Msrrjó rH) rwrNÚ _a85chars2rrÚ _A85STARTÚmaxr'ÚappendrnÚ_A85END)r9rirsrortrqr )rxrsr!r/s"   s )rirtÚ ignorecharsc Cs¤t|ƒ}|rH|jtƒs$tdjtƒƒ‚|jtƒr<|dd…}n |dd…}tjdƒj }g}|j }g}|j }|j } �x|dD�]ö} d| ko’dkn�r|| ƒt |ƒd k�rrd} x|D]} d | | d } qºWy||| ƒƒWn"tj k �rtd ƒd‚YnX| ƒqz| dk�r0|�r&tdƒ‚|dƒqz|�rX| dk�rX|�rNtdƒ‚|dƒqz| |k�rfqzqztd| ƒ‚qzWdj|ƒ} dt |ƒ} | �r | d| …} | S)a†Decode the Ascii85 encoded bytes-like object or ASCII string b. foldspaces is a flag that specifies whether the 'y' short sequence should be accepted as shorthand for 4 consecutive spaces (ASCII 0x20). This feature is not supported by the "standard" Adobe encoding. adobe controls whether the input sequence is in Adobe Ascii85 format (i.e. is framed with <~ and ~>). ignorechars should be a byte string containing characters to ignore from the input. This should only contain whitespace characters, and by default contains all whitespace characters in ASCII. The result is returned as a bytes object. z1Ascii85 encoded byte sequences must end with {!r}r$Nz!IóurCó!rr;reruzAscii85 overflowrczz inside Ascii85 5-tuplesrdzy inside Ascii85 5-tuples zNon-Ascii85 digit found: %crjéþÿÿÿr‚suuuuruéuézéy)r"Úendswithr~rÚformatÚ startswithr{rkrlÚpackr}Úclearr'Úerrorrn)r9rirtrÚpackIr`Zdecoded_appendZcurrZ curr_appendZ curr_clearÚxrarxrpr r r!rXsV           sU0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!#$%&()*+-;<=>?@^_`{|}~cCs2tdkr$dd„tDƒadd„tDƒat|tt|ƒS)z»Encode bytes-like object b in base85 format and return a bytes object. If pad is true, the input is padded with b'\0' so its length is a multiple of 4 bytes before encoding. NcSsg|]}t|fƒ‘qSr )r+)r5r6r r r!r7°szb85encode..cSsg|]}tD] }||‘q qSr )Ú _b85chars)r5r8r9r r r!r7±s)rŽÚ _b85alphabetÚ _b85chars2rr)r9ror r r!r ¦s c CsZtdkr0dgdaxttƒD]\}}|t|<qWt|ƒ}t|ƒ d}|d|}g}tjdƒj}xÔtdt|ƒdƒD]À}|||d…}d}y"x|D]}|dt|}q”WWnJt k røx2t|ƒD]&\}}t|dkrÈt d||ƒd‚qÈW‚YnXy|j ||ƒƒWqttj k �r2t d |ƒd‚YqtXqtWd j |ƒ} |�rV| d| …} | S) zqDecode the base85-encoded bytes-like object or ASCII string b The result is returned as a bytes object. Nér;ó~z!Irrez#bad base85 character at position %dz+base85 overflow in hunk starting at byte %drj)Ú_b85decrYr�r"r'rkrlr‰rNrrr}r‹rn) r9r6rPrpÚoutrŒÚchunkraÚjrxr r r!r ´s<       éLrCrDcCs`xZ|jtƒ}|sPx0t|ƒtkrB|jtt|ƒƒ}|s8P||7}qWtj|ƒ}|j|ƒqWdS)z1Encode a file; input and output are binary files.N)ÚreadÚ MAXBINSIZEr'r%r&Úwrite)ÚinputÚoutputrÚnsÚliner r r!räs   cCs,x&|jƒ}|sPtj|ƒ}|j|ƒqWdS)z1Decode a file; input and output are binary files.N)Úreadliner%r2rš)r›rœržrr r r!rós  cCs’y t|ƒ}Wn8tk rD}zd|jj}t|ƒ|‚WYdd}~XnX|jdkrjd|j|jjf}t|ƒ‚|jdkrŽd|j|jjf}t|ƒ‚dS) Nz"expected bytes-like object, not %srPr9ÚBz-expected single byte elements, not %r from %srAz(expected 1-D data, not %d-D data from %s)rPr9r )rrrrr‡Úndim)rÚmÚerrÚmsgr r r!Ú_input_type_checküs    r¥cCsPt|ƒg}x8tdt|ƒtƒD]$}|||t…}|jtj|ƒƒqWdj|ƒS)zVEncode a bytestring into a bytes object containing multiple lines of base-64 data.rrj)r¥rNr'r™r}r%r&rn)rÚpiecesr6r•r r r!r s cCsddl}|jdtdƒt|ƒS)zLegacy alias of encodebytes().rNzAencodestring() is a deprecated alias since 3.1, use encodebytes()r$)ÚwarningsÚwarnÚDeprecationWarningr)rr§r r r!Ú encodestringsrªcCst|ƒtj|ƒS)z8Decode a bytestring of base-64 data into a bytes object.)r¥r%r2)rr r r!rscCsddl}|jdtdƒt|ƒS)zLegacy alias of decodebytes().rNzHdecodestring() is a deprecated alias since Python 3.1, use decodebytes()r$)r§r¨r©r)rr§r r r!Ú decodestring$sr«c Csddl}ddl}y|j|jdd…dƒ\}}WnP|jk r~}z2|j|_t|ƒtd|jdƒ|jdƒWYdd}~XnXt}xF|D]>\}}|dkržt}|dkrªt }|d kr¶t }|d krŠt ƒdSqŠW|oÚ|dd k�rt |dd ƒ�}|||jj ƒWdQRXn||j j |jj ƒdS) zSmall main programrNrAZdeutz�usage: %s [-d|-e|-u|-t] [file|-] -d, -u: decode -e: encode (default) -t: encode and decode string 'Aladdin:open sesame'r$z-ez-dz-uz-tú-Úrb)ÚsysÚgetoptÚargvr‹ÚstderrÚstdoutÚprintÚexitrrÚtestÚopenÚbufferÚstdin) r®r¯ZoptsÚargsr¤ÚfuncÚor8Úfr r r!Úmain.s0r½cCsHd}tt|ƒƒt|ƒ}tt|ƒƒt|ƒ}tt|ƒƒ||ksDt‚dS)NsAladdin:open sesame)r³r)rrr()Zs0Ús1Ús2r r r!rµHs   rµÚ__main__)N)NF)FN)F)FFF)F)2Ú__doc__r/rkr%Ú__all__r+rKrr"rrrrr,r3r4rrrJrIrXrr r r rwrzr{r~rrrrr�rŽr�r“r r Z MAXLINESIZEr™rrr¥rrªrr«r½rµrr r r r!Úsh     & C  )H -