zmc
2023-10-12 ed135d79df12a2466b52dae1a82326941211dcc9
1
2
3
4
5
6
7
8
9
10
11
U
W±dÂã@s4ddlZddlmZdZe e¡ZGdd„dƒZdS)éN)Úlogéc@s*eZdZdZd    dd„Zdd„Zdd„ZdS)
ÚPyiBlockCipherz<
    This class is used only to encrypt Python modules.
    NcCsjt tjd¡t|ƒtkst‚t|ƒtkr:|dt…|_    n | 
t¡|_    t|j    ƒtksXt‚ddl }||_ dS)NzòBytecode encryption will be removed in PyInstaller v6. Please remove cipher and block_cipher parameters from your spec file to avoid breakages on upgrade. For the rationale/alternatives see https://github.com/pyinstaller/pyinstaller/pull/6999r) ÚloggerrÚloggingZ DEPRECATIONÚtypeÚstrÚAssertionErrorÚlenÚ
BLOCK_SIZEÚkeyÚzfillÚtinyaesÚ_aesmod)Úselfr r©rúUd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\PyInstaller/archive/pyz_crypto.pyÚ__init__sþ  zPyiBlockCipher.__init__cCst t¡}|| |¡ |¡S©N)ÚosÚurandomr Ú_PyiBlockCipher__create_cipherZCTR_xcrypt_buffer)rÚdataÚivrrrÚencrypt)s
zPyiBlockCipher.encryptcCs|j |j ¡|¡Sr)rZAESr Úencode)rrrrrZ__create_cipher-szPyiBlockCipher.__create_cipher)N)Ú__name__Ú
__module__Ú __qualname__Ú__doc__rrrrrrrrs
r)    rZ PyInstallerrrr Ú    getLoggerrrrrrrrÚ<module> s