Skip to main content

Проект создан школьником (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)

Source distribution for taigae2ee 0.1.9
File Size Uploaded
taigae2ee-0.1.9.tar.gz 10.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for taigae2ee 0.1.9
File Interpreter ABI Platform
taigae2ee-0.1.9-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.9 This release

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page