Your IP : 3.137.214.16


Current Path : /opt/alt/python310/lib64/python3.10/__pycache__/
Upload File :
Current File : //opt/alt/python310/lib64/python3.10/__pycache__/secrets.cpython-310.opt-2.pyc

o

6��f��@sr	gd�ZddlZddlZddlmZddlmZe�ZejZ	ej
Z
dd�ZdZddd	�Z
dd
d�Zddd
�ZdS))�choice�	randbelow�randbits�SystemRandom�token_bytes�	token_hex�
token_urlsafe�compare_digest�N)r)rcCs	|dkr	td��t�|�S)Nr	zUpper bound must be positive.)�
ValueError�_sysrandZ
_randbelow)Zexclusive_upper_bound�r�./opt/alt/python310/lib64/python3.10/secrets.pyrs
r� cCs	|durt}t�|�S�N)�DEFAULT_ENTROPYrZ	randbytes��nbytesrrr
r"s	
rcCs	t�t|���d�S)N�ascii)�binasciiZhexlifyr�decoderrrr
r0s
rcCs 	t|�}t�|��d��d�S)N�=r)r�base64Zurlsafe_b64encode�rstripr)r�tokrrr
r=s	rr)�__all__rrZhmacrZrandomrrZgetrandbitsrrrrrrrrrrr
�<module>s



?>