HydroCrypto
Cryptography Extension for Hydrogram
HydroCrypto is a Cryptography Library written in Rust as a Python extension using pyo3.
It is designed to be portable, fast, easy to install and use.
HydroCrypto is intended for Hydrogram.
HydroCrypto can be also used for pyrogram
HydroCrypto uses the AES-IGE
and AES-CTR
for the Telegram MTProto and CDN
NOTE : HydroCrypto is not the official cryptography extension of Hydrogram. So it on your own risks.
Requirements
Installation
$ pip install hydrocrypto
Usage
HydroCrypto consists of functions like
ige256_encrypt(data: bytes, key: bytes, iv: bytes) -> bytes:
ige256_decrypt(data: bytes, key: bytes, iv: bytes) -> bytes:
ctr256_encrypt(data: bytes, key: bytes, iv: bytes, state: bytes) -> bytes:
ctr256_decrypt(data: bytes, key: bytes, iv: bytes, state: bytes) -> bytes:
License
LGPLV3+
© Anand - 2024