Проект создан школьником (14 лет) в рамках изучения криптографии.
Код открыт, замечания и pull request приветствуются!
Тайга (taigae2ee)
Лёгкая и безопасная библиотека сквозного шифрования (E2EE) на российских криптостандартах.
Внутри — проверенная библиотека PyGOST.
Снаружи — простой API.
✨ Особенности
- ГОСТ Р 34.12-2015 — блочный шифр «Кузнечик»
- ГОСТ Р 34.11-2012 — хэш-функция «Стрибог» (256/512)
- ГОСТ Р 34.10-2012 — эллиптическая кривая, ECDH
- ГОСТ Р 34.13-2015 — режим аутентифицированного шифрования MGM
- Эфемерные ключи (прямая секретность)
- Подтверждение ключа (key confirmation)
- Простая бинарная упаковка сообщений
- Шифрование приватных ключей на пароле (PBKDF2-HMAC-Стрибог)
Пример использования:
from taigae2ee import TaigaUser
alice = TaigaUser() bob = TaigaUser()
Алиса шифрует сообщение для Боба
packet = alice.encrypt_for(bob.pub_bytes, b"Привет, Боб!")
Боб расшифровывает
plain = bob.decrypt_from(alice.pub_bytes, packet) print(plain.decode('utf-8')) # Привет, Боб!
Хранение ключей:
from taigae2ee.key_storage import encrypt_private_key, decrypt_private_key
encrypted = encrypt_private_key(alice.priv_bytes, "Пароль")
... сохранить encrypted в файл ...
Восстановление
private_key = decrypt_private_key(encrypted, "Пароль")
📦 Установка
pip install taigae2ee
Metadata
Release files for taigae2ee 0.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| taigae2ee-0.1.9.tar.gz | 10.5 kB | Without provenance | Details for taigae2ee-0.1.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| taigae2ee-0.1.9-py3-none-any.whl | Python 3 | none | any | Details for taigae2ee-0.1.9-py3-none-any.whl |
Total release size: 19.6 kB
Release files / taigae2ee-0.1.9.tar.gz
| Download URL | taigae2ee-0.1.9.tar.gz |
|---|---|
| Size | 10.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0954129a2b3e1ae3ac24eba2d88be5053ba33ba9d1f5a9bcd2b766ab5fbe80f0
|
|
BLAKE2b-256 checksum How to use checksums |
8eceaf8bb50ade7edd4c97104711f27d6c6d08593dd18a28ac09e21523816ae3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.13
|
Release files / taigae2ee-0.1.9-py3-none-any.whl
| Download URL | taigae2ee-0.1.9-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f02ed5c4790873af96958eabfdd0e71dc878bf21775e80da3e27b3ce7037aa6d
|
|
BLAKE2b-256 checksum How to use checksums |
41ce008bac4e7fa1aa9504133c22df6b7d1d6476445eef25dd62df100d905094
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.13
|
Security for taigae2ee 0.1.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.