--- id: cryptg version: "0.6.0" license: CC0 license_treatment: permissive maintenance: active --- # cryptg — Cryptographic utilities for Telegram. License: permissive · Maintenance: active · Downloads: 192.6K/mo ## What it is and what it does cryptg is a compiled Python extension that exposes AES-IGE (AES in Infinite Garble Extension mode), the encryption cipher used by Telegram's MTProto protocol. It wraps Rust implementations to provide fast, native access to this uncommon cipher mode from Python code. The package is designed for libraries and applications that need to communicate with the Telegram API and handle its cryptographic operations directly. The package requires Python 3.11 or later and is distributed as precompiled wheels for common architectures (x86_64, aarch64, Windows, macOS). It has no runtime Python dependencies, making installation straightforward on supported platforms. The wrapper itself is released under CC0 (public domain), though the underlying Rust dependencies have their own license terms that should be reviewed. Use it for: - Implementing Telegram client libraries that need to encrypt/decrypt MTProto messages - Building Telegram bots or API wrappers that handle low-level protocol encryption - Integrating Telegram protocol support into applications requiring direct API communication - Testing or reverse-engineering Telegram's encryption layer in security research ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. cryptg provides a native Python extension that implements AES-IGE encryption, the cipher mode used by Telegram's MTProto protocol. Yes, if you are building or maintaining a library that communicates with Telegram's API and needs native AES-IGE support. The package is actively maintained, has no known vulnerabilities, and offers permissive licensing. Install friction is moderate due to compilation requirements, but prebuilt wheels cover common platforms. Not relevant for general-purpose cryptography work. ## Install pip install cryptg uv add cryptg poetry add cryptg ## Installing cryptg Before you install: Medium install friction due to compiled wheels for multiple Python versions and platforms. Actively maintained with recent commits and no known vulnerabilities. License in practice: Licensed under CC0 (public domain), permitting unrestricted use. Rust dependencies carry their own licenses, which should be reviewed separately. Quickstart: pip install cryptg import cryptg # Use cryptg functions for AES-IGE encryption/decryption with Telegram API Requires Python 3.11 or later; prebuilt wheels available for common platforms but compilation may be needed on unsupported architectures. Verify before relying: - Specific AES-IGE API surface and function signatures not detailed in excerpt - Performance characteristics relative to pure-Python or other cryptography libraries - Rust dependency versions and their individual license terms ## Package facts - License: CC0 (permissive) - Python support: supports_current - Install friction: medium - Maintenance: active - Downloads: 192.6K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags telegram encryption, aes-ige cipher, mtproto cryptography, telegram api crypto, aes mode implementation, telegram protocol encryption, telegram, mtproto [View on SkillFed](https://skillfed.io/packages/cryptg) · [View on PyPI](https://pypi.org/project/cryptg/)