ok

Mini Shell

Direktori : /usr/lib64/python2.7/site-packages/M2Crypto/
Upload File :
Current File : //usr/lib64/python2.7/site-packages/M2Crypto/AuthCookie.pyo

�

�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-scCst|j�rdS|j|j|j�}|j|jkos|j|jkos|j|jkos|j�|j�kS(Ni(t	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
tvalueRRRR"(Rt
cookie_strR%tundoughtexpRtmactc2((s9/usr/lib64/python2.7/site-packages/M2Crypto/AuthCookie.pytisGoodCookieString;s
(t__name__t
__module__RRRRR&R2(((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	R0((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.pyR0ZscCs
|jj�S(s2Return the cookie's output in "Set-Cookie" format.(R5R#(R((s9/usr/lib64/python2.7/site-packages/M2Crypto/AuthCookie.pyR#^scCs|jtjS(sEReturn the cookie's output minus the "Set-Cookie: " portion.
        (R5R+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.pyRgscCs|jS(N(R6(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(R3R4RRRR0R#R,RR8R9(((s9/usr/lib64/python2.7/site-packages/M2Crypto/AuthCookie.pyRHs								(((t__doc__RRR'RtreR7t_MIX_FORMATtcompilet_MIX_RERRR
R+RR(((s9/usr/lib64/python2.7/site-packages/M2Crypto/AuthCookie.pyt<module>s0%

Zerion Mini Shell 1.0