%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/opt/plesk/python/2.7/lib64/python2.7/site-packages/bcrypt/
Upload File :
Create Path :
Current File : //proc/self/root/opt/plesk/python/2.7/lib64/python2.7/site-packages/bcrypt/__init__.pyo

�
��
]c@`s
ddlmZddlmZddlZddlZddlZddlZddlmZddl	m
Z
mZmZm
Z
mZmZmZmZddd	d
ddd
dddddgZejd�Zddd�Zd�Zd�Zed�Zd�ZdS(i(tabsolute_import(tdivisionNi(t_bcrypt(t
__author__t
__copyright__t	__email__t__license__t__summary__t	__title__t__uri__t__version__RRR	R
RRRRtgensaltthashpwtkdftcheckpws^\$2y\$it2bcC`s�|d
krtd��n|dks3|dkrBtd��ntjd�}tjjdd	�}tjj||t|��d
|d
d|j	d�d
tjj
|�S(Nt2aRs%Supported prefixes are b'2a' or b'2b'iisInvalid roundsischar[]it$s%2.2utascii(RR(t
ValueErrortosturandomRtffitnewtlibt
encode_base64tlentencodetstring(troundstprefixtsalttoutput((sF/opt/plesk/python/2.7/lib64/python2.7/site-packages/bcrypt/__init__.pyR*s cC`s�t|tj�s$t|tj�r3td��nd|krNtd��n|d }|tjd|�}}tjj	dd�}tj
j|||t|��}|dkr�td	��n|d
 tjj
|�d
S(Ns.Unicode-objects must be encoded before hashingss"password may not contain NUL bytesiHs$2b$schar[]i�isInvalid salti(t
isinstancetsixt	text_typet	TypeErrorRt
_normalize_retsubRRRRtbcrypt_hashpassRR(tpasswordRt
original_saltthashedtretval((sF/opt/plesk/python/2.7/lib64/python2.7/site-packages/bcrypt/__init__.pyR;s$
!cC`s�t|tj�s$t|tj�r3td��nd|ksKd|krZtd��nt||�}t|�t|�kr�tStj	j
||t|��dkS(Ns/Unicode-objects must be encoded before checkingss6password and hashed_password may not contain NUL bytesi(R!R"R#R$RRRtFalseRRttimingsafe_bcmp(R(thashed_passwordtret((sF/opt/plesk/python/2.7/lib64/python2.7/site-packages/bcrypt/__init__.pyRascC`sLt|tj�s$t|tj�r3td��nt|�dksWt|�dkrftd��n|dks~|dkr�td��n|dkr�td��n|dkr�|r�tjd	j|�t	d
d�nt
jjd|�}t
j
j|t|�|t|�|t|�|�}t|dk�t
jj||�S(
Ns.Unicode-objects must be encoded before hashingis#password and salt must not be emptyisdesired_key_bytes must be 1-512isrounds must be 1 or morei2srWarning: bcrypt.kdf() called with only {0} round(s). This few is not secure: the parameter is linear, like PBKDF2.t
stacklevelis	uint8_t[](R!R"R#R$RRtwarningstwarntformattUserWarningRRRRtbcrypt_pbkdft_bcrypt_asserttbuffer(R(Rtdesired_key_bytesRtignore_few_roundstkeytres((sF/opt/plesk/python/2.7/lib64/python2.7/site-packages/bcrypt/__init__.pyR
ss&$$
	-cC`s|std��ndS(Nsbcrypt assertion failed(tSystemError(tok((sF/opt/plesk/python/2.7/lib64/python2.7/site-packages/bcrypt/__init__.pyR6�s(t
__future__RRRtreR1R"tRt	__about__RRRRRRR	R
t__all__tcompileR%RRRR,R
R6(((sF/opt/plesk/python/2.7/lib64/python2.7/site-packages/bcrypt/__init__.pyt<module>s :		&	"

Zerion Mini Shell 1.0