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"cCs,tj|dd�}|dk r(|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)ÚnewlineNs+/)ÚbinasciiÚ b2a_base64Ú translateÚbytesÚ maketrans)rÚaltcharsÚencodedr r r!r3sFcCsPt|ƒ}|dk r*t|ƒ}|jtj|dƒƒ}|rFtjd|ƒ rFtjdƒ‚tj|ƒ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. Ns+/s^[A-Za-z0-9+/]*={0,2}$zNon-base64 digit found) 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 )r1ÚaÚb)Úb32tabr r!r3–séórÚbigééiÿé és======éés====éés===ó=iúÿÿÿéüÿÿÿéýÿÿÿéÿÿÿÿ) Ú_b32tab2Ú _b32alphabetrrrrÚlenÚ bytearrayÚintÚ from_bytesÚranger')rÚleftoverr*rKZb32tab2r2Úcr )r6r!rŽs4   *    c Cs‚tdkrdd„ttƒDƒat|ƒ}t|ƒdr8tjdƒ‚|dk r^t|ƒ}|jtj dd|ƒƒ}|rj|j ƒ}t|ƒ}|j dƒ}|t|ƒ}t ƒ}t}x€t d t|ƒdƒD]l}|||d…}d } y"x|D]} | d >|| } qÄWWn tk rþtjd ƒd‚YnX|| jd d ƒ7}q¤W|d�s(|dk�r2tjdƒ‚|�rz|�rz| 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 )r1ÚkÚvr r r!ú Êszb32decode..ézIncorrect paddings01óOrBrr7zNon-base32 digit foundr9r=rAr@r>é+>rr=rAr@r>éûÿÿÿ)Ú_b32revÚ enumeraterGr"rHr$r-r&r'r(ÚupperÚrstriprIrLÚKeyErrorÚto_bytes) rÚcasefoldZmap01ÚlZpadcharsÚdecodedZb32revr2ZquantaÚaccrNZlastrMr r r!r ´s@         cCstj|ƒjƒS)zKEncode the bytes-like object s using Base16 and return a bytes object. )r$ZhexlifyrX)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"rXr+Úsearchr$r-Z 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)Nr@r8z!%dIcsRg|]J}ˆr| rdn6ˆr&|dkr&dn&ˆ|dˆ|ddˆ|d‘qS)ózi óyií^ éUi9r )r1Zword)ÚcharsÚchars2ÚfoldnulsÚ foldspacesr r!r3!sz_85encode..r=rarr7órErErErE) rrrrrHÚstructÚStructÚunpackÚjoin) r5rdreÚpadrfrgÚpaddingZwordsÚchunksr )rdrerfrgr!Ú _85encodes     rp)rgÚwrapcolrmÚ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')r1r2r r r!r3Dsza85encode..é!évcSsg|]}tD] }||‘q qSr )Ú _a85chars)r1r4r5r r r!r3EsTr?r=csg|]}ˆ||ˆ…‘qSr r )r1r2)Úresultrqr r!r3Msrrhó rE) rurLÚ _a85chars2rpÚ _A85STARTÚmaxrHÚappendrlÚ_A85END)r5rgrqrmrrror )rvrqr!r/s"   s )rgrrÚ 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óur@ó!rr7rcrszAscii85 overflowrazz inside Ascii85 5-tuplesrbzy inside Ascii85 5-tuples zNon-Ascii85 digit found: %crhéþÿÿÿr€suuuurséuézéy)r"Úendswithr|rÚformatÚ startswithryrirjÚpackr{ÚclearrHÚerrorrl)r5rgrrr}ÚpackIr^Zdecoded_appendZcurrZ curr_appendZ curr_clearÚxr_rvrnr 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')r1r2r r r!r3°szb85encode..cSsg|]}tD] }||‘q qSr )Ú _b85chars)r1r4r5r r r!r3±s)rŒÚ _b85alphabetÚ _b85chars2rp)r5rmr 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ér7ó~z!Irrcz#bad base85 character at position %dz+base85 overflow in hunk starting at byte %drh)Ú_b85decrWr�r"rHrirjr‡rLrrr{r‰rl) r5r2rNrnÚoutrŠÚchunkr_Újrvr r r!r ´s<       éLr@rAcCs`xZ|jtƒ}|sPx0t|ƒtkrB|jtt|ƒƒ}|s8P||7}qWtj|ƒ}|j|ƒqWdS)z1Encode a file; input and output are binary files.N)ÚreadÚ MAXBINSIZErHr$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$r.r˜)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 %srNr5ÚBz-expected single byte elements, not %r from %sr=z(expected 1-D data, not %d-D data from %s)rNr5rž)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.rrh)r£rLrHr—r{r$r%rl)rÚpiecesr2r“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$r.)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 programrNr=Zdeutz�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Úor4Úfr r r!Úmain.s0r»cCs<d}tt|ƒƒt|ƒ}tt|ƒƒt|ƒ}tt|ƒƒdS)NsAladdin:open sesame)r±Úreprrr)Zs0Ús1Ús2r r r!r³Hs   r³Ú__main__)N)NF)FN)F)FFF)F)2Ú__doc__r+rir$Ú__all__r'rIrr"rrrrr(r/r0rrrGrFrVrr r r rurxryr|rprrr�rŒrŽr‘r r Z MAXLINESIZEr—rrr£rr¨rr©r»r³rr r r r!Úsh     & C  )H -