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: //proc/self/root/proc/2/cwd/usr/lib/python2.4/site-packages/M2Crypto/AuthCookie.pyc
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“t|tƒpt‚|iƒodSn|i|i|iƒ}|i|ijo<|i|ijo)|i
|i
jo|iƒ|iƒjS(Ni(t
isinstancetcookieRtAssertionErrort	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&R2RR3R4R1((RtisGoodCookieString;s

(t__name__t
__module__RRRRR)R5(((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%R3R'R*R+t_cookieRR/t_name(RRRRR3((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((RR3ZscCs
|iiƒS(s2Return the cookie's output in "Set-Cookie" format.N(RR8R((R((RR(^scCs|itiS(sEReturn the cookie's output minus the "Set-Cookie: " portion.
        N(RR8R/R0(R((RR0bscCstiƒ|ijS(s0Return 1 if the cookie has expired, 0 otherwise.N(ttimeRR$(R((RR#gscCs|iS(N(RR9(R((RtnamemscCs
|iƒS(N(RR0(R((RtheaderValueps(R6R7RRRR3R(R0R#R;R<(((RRHs								(t__doc__RRR*RtreR:t_MIX_FORMATtcompilet_MIX_RERR
RR/RR(RRAR
RRR/RRRR?R>R*RR:((Rt?s$%