Fast and portable cryptography extension library for Pyrofork, providing optimized implementations of AES-256-IGE, AES-256-CTR, and other Telegram-specific cryptographic primitives. Current version: 1.2.8, released in January 2025. Active development with occasional updates.
pip install tgcrypto-pyroforkNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic usage of Tgcrypto for IGE encryption.
Ensure you are using Pyrofork, not Pyrogram, and install tgcrypto-pyrofork via pip.
Use 'from tgcrypto import Tgcrypto' and instantiate Tgcrypto().
Always use 32-byte keys and 32-byte IVs for IGE, and 32-byte keys with 16-byte IVs for CTR.
Upgrade Python to 3.10 or later.