ok

Mini Shell

Direktori : /proc/self/root/proc/thread-self/root/usr/lib64/python2.7/site-packages/M2Crypto/
Upload File :
Current File : //proc/self/root/proc/thread-self/root/usr/lib64/python2.7/site-packages/M2Crypto/AuthCookie.pyc

�

�1Mc@s�dZddlZddlZddlZddlZddlZddlZdZejd�Z	ed�Z
e	d�Ze	d�ZdZ
d	d
d
��YZddd��YZdS(sZSecure Authenticator Cookies

Copyright (c) 1999-2002 Ng Pheng Siong. All rights reserved.i����Nsexp=%s&data=%s&digest=s%exp=(\d+\.\d+)&data=(.+)&digest=(\S*)cCs|t|�|fS(N(trepr(texpirytdatatformat((s9/usr/lib64/python2.7/site-packages/M2Crypto/AuthCookie.pytmixscCs?|j|�}|r7t|jd��|jd�fSdSdS(Nii(tmatchtfloattgrouptNone(tdoughtregextmo((s9/usr/lib64/python2.7/site-packages/M2Crypto/AuthCookie.pytunmixs"cCsK|j|�}|rCt|jd��|jd�|jd�fSdSdS(Niii(RRRR(R	R
R((s9/usr/lib64/python2.7/site-packages/M2Crypto/AuthCookie.pytunmix3s.t_M2AUTH_t
AuthCookieJarcBs;eZdZd�Zd�Zd�Zd�Zd�ZRS(icCstj|j�|_dS(N(tRandt
rand_bytest_keylent_key(tself((s9/usr/lib64/python2.7/site-packages/M2Crypto/AuthCookie.pyt__init__'scCs&tjtj||tj���d S(Ni����(tbinasciit
b2a_base64tm2thmactsha1(RtkeyR((s9/usr/lib64/python2.7/site-packages/M2Crypto/AuthCookie.pyt_hmac*scCs1t||�}t||||j|j|��S(N(Rt
AuthCookieRR(RRRR	((s9/usr/lib64/python2.7/site-packages/M2Crypto/AuthCookie.pyt
makeCookie-scCs�t|t�st�|j�r%dS|j|j|j�}|j|jko�|j|jko�|j|jko�|j�|j�kS(Ni(	t
isinstanceRtAssertionErrort	isExpiredRt_expiryt_datat_mactoutput(Rtcookietc((s9/usr/lib64/python2.7/site-packages/M2Crypto/AuthCookie.pytisGoodCookie1scCs�tj�}|j|�|jt�s,dSt|tj�}|dkrOdS|\}}}|j||�}|j	�o�|j
|kS(Ni(tCookietSmartCookietloadthas_keyt_TOKENR
tvalueRRR!R$(Rt
cookie_strR'tundoughtexpRtmactc2((s9/usr/lib64/python2.7/site-packages/M2Crypto/AuthCookie.pytisGoodCookieString;s
(t__name__t
__module__RRRRR(R4(((s9/usr/lib64/python2.7/site-packages/M2Crypto/AuthCookie.pyR#s				
RcBsYeZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
RS(	cCsX||_||_||_tj�|_d||f|jt<d||f|_dS(Ns%s%s(R"R#R$R)R*t_cookieR-t_name(RRRR	R2((s9/usr/lib64/python2.7/site-packages/M2Crypto/AuthCookie.pyRJs			cCs|jS(s Return the cookie's expiry time.(R"(R((s9/usr/lib64/python2.7/site-packages/M2Crypto/AuthCookie.pyRRscCs|jS(s&Return the data portion of the cookie.(R#(R((s9/usr/lib64/python2.7/site-packages/M2Crypto/AuthCookie.pyRVscCs|jS(sReturn the cookie's MAC.(R$(R((s9/usr/lib64/python2.7/site-packages/M2Crypto/AuthCookie.pyR2ZscCs
|jj�S(s2Return the cookie's output in "Set-Cookie" format.(R7R%(R((s9/usr/lib64/python2.7/site-packages/M2Crypto/AuthCookie.pyR%^scCs|jtjS(sEReturn the cookie's output minus the "Set-Cookie: " portion.
        (R7R-R.(R((s9/usr/lib64/python2.7/site-packages/M2Crypto/AuthCookie.pyR.bscCstj�|jkS(s0Return 1 if the cookie has expired, 0 otherwise.(ttimeR"(R((s9/usr/lib64/python2.7/site-packages/M2Crypto/AuthCookie.pyR!gscCs|jS(N(R8(R((s9/usr/lib64/python2.7/site-packages/M2Crypto/AuthCookie.pytnamemscCs
|j�S(N(R.(R((s9/usr/lib64/python2.7/site-packages/M2Crypto/AuthCookie.pytheaderValueps(R5R6RRRR2R%R.R!R:R;(((s9/usr/lib64/python2.7/site-packages/M2Crypto/AuthCookie.pyRHs								(((t__doc__RRR)RtreR9t_MIX_FORMATtcompilet_MIX_RERRR
R-RR(((s9/usr/lib64/python2.7/site-packages/M2Crypto/AuthCookie.pyt<module>s0%

Zerion Mini Shell 1.0