--- id: kasa-crypt version: "1.1.0" license: Apache-2.0 license_treatment: permissive maintenance: active --- # kasa-crypt — Fast kasa crypt License: permissive · Maintenance: active · Downloads: 86.2K/mo ## What it is and what it does kasa-crypt is a lightweight encryption library that wraps fast cryptographic operations for encrypting and decrypting data, particularly JSON payloads. It exposes two main functions—encrypt() and decrypt()—and automatically prepends a 4-byte header to encrypted output that must be stripped before decryption. The package is distributed as pre-compiled wheels for Python 3.9 through 3.14 across major platforms (Linux, macOS, Windows, ARM), reducing installation friction on supported systems. The library is in pre-alpha development but actively maintained, with no known security vulnerabilities. It has no runtime dependencies beyond the Python standard library, making it lightweight to integrate. The minimal API surface and straightforward usage pattern suggest it is designed for simple, fast encryption tasks rather than complex key management or authenticated encryption scenarios. Use it for: - Encrypt JSON configuration or API payloads before transmission over untrusted channels. - Quick data obfuscation in Python scripts without external crypto dependencies. - Protect sensitive strings in application logs or temporary storage. - Fast symmetric encryption for IoT or embedded Python environments (kasa device context). ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Provides fast encryption and decryption functions for JSON and other data, with a 4-byte header prepended to encrypted output. Yes, if you need simple, fast symmetric encryption for JSON or string data and are comfortable with pre-alpha software. The permissive Apache-2.0 license, zero runtime dependencies, and active maintenance are positive signals. However, verify the underlying algorithm meets your security requirements and audit the 4-byte header behavior before using in production. Not recommended for cryptographically sensitive applications without security review. ## Install pip install kasa-crypt uv add kasa-crypt poetry add kasa-crypt ## Installing kasa-crypt Before you install: Medium install friction due to compiled wheels across multiple Python versions and platforms (3.9–3.14, x86_64, ARM, Windows, macOS, Linux variants). Repository is active with recent commits; pre-alpha status suggests ongoing development. License in practice: Licensed under Apache-2.0 (permissive), allowing commercial and private use with minimal restrictions. Quickstart: pip install kasa-crypt from kasa_crypt import encrypt, decrypt encrypted = encrypt('{"hello":"world"}') decrypted = decrypt(encrypted[4:]) # Skip 4-byte header print(decrypted) Requires Python >=3.9; compiled wheels available for common platforms but may require compilation on unsupported architectures. Verify before relying: - What encryption algorithm (AES, ChaCha20, etc.) is used internally. - Whether the 4-byte header encodes metadata or is purely structural. - Performance benchmarks relative to other Python crypto libraries. - Security audit status or cryptographic review history. ## Package facts - License: Apache-2.0 (permissive) - Python support: supports_current - Install friction: medium - Maintenance: active - Downloads: 86.2K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags fast encryption decryption, json encryption library, kasa crypt, data encryption python, symmetric encryption, encryption, json-serialization, kasa-ecosystem [View on SkillFed](https://skillfed.io/packages/kasa-crypt) · [View on PyPI](https://pypi.org/project/kasa-crypt/)