• File: pyca_cryptography.cpython-37.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/opt/alt/python37/lib/python3.7/site-packages/beaker/crypto/__pycache__/pyca_cryptography.cpython-37.pyc
  • Date Modified: 12/01/2019 7:12 PM
  • File size: 1.12 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit
B

[5@sTdZddlZddlZddlmZddlmZmZmZddZ	ddZ
d	Zd
dZdS)z-Encryption module that uses pyca/cryptographyN)default_backend)Cipher
algorithmsmodescCsJtd}tt|t|td}|	||
}||j|S)N)backend)osurandomrrAESrGCMr	encryptorupdatefinalizetag)datakeyivr
ciphertextrP/opt/alt/python37/lib/python3.7/site-packages/beaker/crypto/pyca_cryptography.py
aesEncrypts
rcCsX|dd}|dd}|dd}tt|t||td}|||S)Nr)r)	rrr
rrr	decryptorr
r)rrrrrrrrr
aesDecrypts
rTcCsdS)N rrrrrgetKeyLength3sr)
__doc__rZjsonZcryptography.hazmat.backendsrZ&cryptography.hazmat.primitives.ciphersrrrrrZhas_aesrrrrr<module>s