KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /proc/21585/root/usr/lib64/python2.4/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/21585/root/usr/lib64/python2.4/base64.pyo
mò
‚=5Dc@sèdZdkZdkZdkZdddddddd	d
ddd
ddgZgZedƒD]Zeeeƒqb[Z	dZ
d„Zed„Z
ed„Zd„Zd„Zd„Zd„Zhdd<dd<dd<dd <d!d"<d#d$<d%d&<d'd(<d)d*<d+d,<d-d.<d/d0<d1d2<d3d4<d5d6<d7d8<d9d:<d;d<<d=d><d?d@<dAdB<dCdD<dEdF<dGdH<dIdJ<dKdL<dMdN<dOdP<dQdR<dSdT<dUdV<dWdX<ZgZeiƒD]
Zeeq[ZegZeiƒD]\ZZeeeeƒfq*[ƒZdY„ZeedZ„Zd[„Zed\„Z d]Z!e!d9d1Z"d^„Z#d_„Z$d`„Z%da„Z&db„Z'dc„Z(e)ddjoe'ƒndS(es/RFC 3548: Base16, Base32, Base64 Data EncodingsNtencodetdecodetencodestringtdecodestringt	b64encodet	b64decodet	b32encodet	b32decodet	b16encodet	b16decodetstandard_b64encodetstandard_b64decodeturlsafe_b64encodeturlsafe_b64decodeitcCsJt}x*|iƒD]\}}||t|ƒ<qW|idi	|ƒƒS(NR(
t_translationttranslationtaltcharstitemstktvtordtst	translatetjoin(RRRRR((t/usr/lib64/python2.4/base64.pyt
_translate s

cCsOti|ƒd }|dj	o+t|hd|d<d|d<ƒSn|S(slEncode a string using Base64.

    s is the string to encode.  Optional altchars must be a string of at least
    length 2 (additional characters are ignored) which specifies an
    alternative alphabet for the '+' and '/' characters.  This allows an
    application to e.g. generate url or filesystem safe Base64 strings.

    The encoded string is returned.
    iÿÿÿÿt+it/iN(tbinasciit
b2a_base64RtencodedRtNoneR(RRR((RR*s
	
+cCsv|dj	o-t|h|dd<|dd<ƒ}nyti|ƒSWn$tij
o}t|ƒ‚nXdS(sžDecode a Base64 encoded string.

    s is the string to decode.  Optional altchars must be a string of at least
    length 2 (additional characters are ignored) which specifies the
    alternative alphabet used instead of the '+' and '/' characters.

    The decoded string is returned.  A TypeError is raised if s were
    incorrectly padded or if there are non-alphabet characters present in the
    string.
    iRiRN(	RR RRRt
a2b_base64tErrortmsgt	TypeError(RRR#((RR;s

-cCs
t|ƒS(syEncode a string using the standard Base64 alphabet.

    s is the string to encode.  The encoded string is returned.
    N(RR(R((RR
OscCs
t|ƒS(sDecode a string encoded with the standard Base64 alphabet.

    s is the string to decode.  The decoded string is returned.  A TypeError
    is raised if the string is incorrectly padded or if there are non-alphabet
    characters present in the string.
    N(RR(R((RRVscCs
t|dƒS(s¹Encode a string using a url-safe Base64 alphabet.

    s is the string to encode.  The encoded string is returned.  The alphabet
    uses '-' instead of '+' and '_' instead of '/'.
    s-_N(RR(R((RR_scCs
t|dƒS(sDDecode a string encoded with the standard Base64 alphabet.

    s is the string to decode.  The decoded string is returned.  A TypeError
    is raised if the string is incorrectly padded or if there are non-alphabet
    characters present in the string.

    The alphabet uses '-' instead of '+' and '_' instead of '/'.
    s-_N(RR(R((RR
gsitAi	tJitSit3itBi
tKitTit4itCitLitUit5itDitMitVit6itEi
tNitWit7itFitOitXitGitPitYitHitQitZitIitRit2c	Cs­g}tt|ƒdƒ\}}|o |dd|7}|d7}nxÛt|ƒD]Í}ti	d||d|dd!ƒ\}}}||d@d>7}||d@d>7}|i
t|d?t|d	?d
@t|d?d
@t|d?t|d?d
@t|d
?d
@t|d?t|d
@gƒqUWti|ƒ}|djo|d dSnX|d
jo|d dSn;|djo|d dSn|djo|d dSn|S(scEncode a string using Base32.

    s is the string to encode.  The encoded string is returned.
    itis!HHBiiiiiiiiiiúÿÿÿs======iüÿÿÿs====iýÿÿÿs===iiÿÿÿÿt=N(tpartstdivmodtlenRtquantatleftovertrangetitstructtunpacktc1tc2tc3textendt_b32tabtEMPTYSTRINGRR(	RRMRRGRJRQRRRKRP((RR…s,
.y	



c
Cs'tt|ƒdƒ\}}|otdƒ‚n|o%t|hdd<d|<ƒ}n|o|i	ƒ}nd}
tid|ƒ}|o5t|idƒƒ}
|
djo||
 }qÉng}d}d	}x|D]…}ti|ƒ}|djotd
ƒ‚n|t||>7}|d8}|djo*|itid|ƒƒd}d	}qâqâWtid|ƒ}	|
djo
d
}	ny|
djo|	d }	n^|
djo|	d }	nC|
djo|	d }	n(|
djo|	d }	n
tdƒ‚|i|	ƒti|ƒS(sGDecode a Base32 encoded string.

    s is the string to decode.  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 decoded string is returned.  A TypeError is raised if s were
    incorrectly padded or if there are non-alphabet characters present in the
    string.
    isIncorrect paddingt0R:t1is(?P<pad>[=]*)$tpadi#sNon-base32 digit foundis%010xRiiÿÿÿÿiiþÿÿÿiiýÿÿÿiiüÿÿÿN(RHRIRRJRKR$tmap01RtcasefoldtuppertpadcharstretsearchtmotgroupRGtacctshifttct_b32revtgettvalR tappendRt	unhexlifytlastRUR(
RRZRYRfRGRJRKRaRcRiR\RbR_((RR¯sT%










cCsti|ƒiƒS(scEncode a string using Base16.

    s is the string to encode.  The encoded string is returned.
    N(RthexlifyRR[(R((RRùscCsG|o|iƒ}ntid|ƒotdƒ‚nti|ƒS(swDecode a Base16 encoded string.

    s is the string to decode.  Optional casefold is a flag specifying whether
    a lowercase alphabet is acceptable as input.  For security purposes, the
    default is False.

    The decoded string is returned.  A TypeError is raised if s were
    incorrectly padded or if there are non-alphabet characters present in the
    string.
    s	[^0-9A-F]sNon-base16 digit foundN(RZRR[R]R^R$RRh(RRZ((RR	s
iLcCs”xto…|itƒ}|pPnxGt|ƒtjo3|itt|ƒƒ}|pPn||7}q(Wti|ƒ}|i|ƒqWdS(sEncode a file.N(tTruetinputtreadt
MAXBINSIZERRItnsRRtlinetoutputtwrite(RlRqRRpRo((RRscCsGx@to8|iƒ}|pPnti|ƒ}|i|ƒqWdS(sDecode a file.N(	RkRltreadlineRpRR!RRqRr(RlRqRRp((RR*scCs]g}xGtdt|ƒtƒD]-}|||t!}|iti	|ƒƒqWdi
|ƒS(sEncode a string.iRN(tpiecesRLRIRRnRMtchunkRgRRR(RRMRuRt((RR4scCs
ti|ƒS(sDecode a string.N(RR!R(R((RR=scCsLdk}dk}y#|i|iddƒ\}}WnF|ij
o7}|i|_|GHd|idGH|i	dƒnXt
}xu|D]m\}}|djo
t
}n|djo
t}n|d	jo
t}n|d
jotƒdSq‹q‹W|o2|ddjo!|t|ddƒ|iƒn||i|iƒdS(
sSmall test programNitdeutsusage: %s [-d|-e|-u|-t] [file|-]
        -d, -u: decode
        -e: encode (default)
        -t: encode and decode string 'Aladdin:open sesame'iis-es-ds-us-tt-trb(tsystgetopttargvtoptstargsterrorR#tstderrtstdouttexitRtfunctotaRttest1topentstdin(R„R}RƒRyR‚R#RzR|((RttestDs.#






!cCs5d}t|ƒ}t|ƒ}|Gt|ƒG|GHdS(NsAladdin:open sesame(ts0Rts1Rts2trepr(R‹RŠR‰((RR…]st__main__(*t__doc__R]RNRt__all__t_[1]RLt_xtchrRRURR RRR
RRR
t_b32alphabettvaluesRRTtdictRRtlongRdRtFalseRRR	tMAXLINESIZERnRRRRRˆR…t__name__( R…RR
RdRRTRRnRNRR‘RRRR]RRR˜RRRˆRR
RRR	RRURR“RR((Rt?s>			0-	
					ÿ''?	*J			
					


Anon7 - 2021