MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: //usr/local/ssl/lib/python2.4/site-packages/M2Crypto/AuthCookie.pyo
mò
äDc@s¥dZdkZdkZdkZdkZdkZdkZdZeidƒZ	ed„Z
e	d„Ze	d„ZdZ
dfd	„ƒYZd
fd„ƒYZdS(sZSecure Authenticator Cookies

Copyright (c) 1999-2002 Ng Pheng Siong. All rights reserved.Nsexp=%s&data=%s&digest=s%exp=(\d+\.\d+)&data=(.+)&digest=(\S*)cCs|t|ƒ|fS(N(tformattreprtexpirytdata(RRR((t7/usr/lib/python2.4/site-packages/M2Crypto/AuthCookie.pytmixscCsD|i|ƒ}|o&t|idƒƒ|idƒfSndSdS(Nii(tregextmatchtdoughtmotfloattgrouptNone(RRR	((Rtunmixs&cCsP|i|ƒ}|o2t|idƒƒ|idƒ|idƒfSndSdS(Niii(RRRR	R
RR(RRR	((Rtunmix3s2t_M2AUTH_t
AuthCookieJarcBs;tZdZd„Zd„Zd„Zd„Zd„ZRS(NicCsti|iƒ|_dS(N(tRandt
rand_bytestselft_keylent_key(R((Rt__init__'scCs&titi||tiƒƒƒd S(Niÿÿÿÿ(tbinasciit
b2a_base64tm2thmactkeyRtsha1(RRR((Rt_hmac*scCs1t||ƒ}t||||i|i|ƒƒS(N(RRRRt
AuthCookieRRR(RRRR((Rt
makeCookie-scCs||iƒodSn|i|i|iƒ}|i|ijo<|i|ijo)|i|ijo|iƒ|iƒjS(Ni(	tcookiet	isExpiredRRt_expiryt_datatct_mactoutput(RR R$((RtisGoodCookie1s

cCs•tiƒ}|i|ƒ|itƒpdSnt|tiƒ}|djodSn|\}}}|i||ƒ}|iƒo
|i|jS(Ni(tCookietSmartCookieR$tloadt
cookie_strthas_keyt_TOKENRtvaluetundoughRtexpRtmacRRtc2R!R%(RR+R$R0RR1R2R/((RtisGoodCookieString;s

(t__name__t
__module__RRRRR'R3(((RR#s				
RcBsYtZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d	„Z
RS(
NcCsX||_||_||_tiƒ|_	d||f|i	t<d||f|_dS(Ns%s%s(
RRR"RR#R1R%R(R)t_cookieRR-t_name(RRRRR1((RRJs			cCs|iS(s Return the cookie's expiry time.N(RR"(R((RRRscCs|iS(s&Return the data portion of the cookie.N(RR#(R((RRVscCs|iS(sReturn the cookie's MAC.N(RR%(R((RR1ZscCs
|iiƒS(s2Return the cookie's output in "Set-Cookie" format.N(RR6R&(R((RR&^scCs|itiS(sEReturn the cookie's output minus the "Set-Cookie: " portion.
        N(RR6R-R.(R((RR.bscCstiƒ|ijS(s0Return 1 if the cookie has expired, 0 otherwise.N(ttimeRR"(R((RR!gscCs|iS(N(RR7(R((RtnamemscCs
|iƒS(N(RR.(R((RtheaderValueps(R4R5RRRR1R&R.R!R9R:(((RRHs								(t__doc__RRR(RtreR8t_MIX_FORMATtcompilet_MIX_RERR
RR-RR(RR?R
RRR-RRRR=R<R(RR8((Rt?s$%