Skip to main content

Лёгкая E2EE-библиотека на ГОСТ (обёртка над PyGOST) с простым API.

Project description

Тайга (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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

taigae2ee-0.1.0.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

taigae2ee-0.1.0-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file taigae2ee-0.1.0.tar.gz.

File metadata

  • Download URL: taigae2ee-0.1.0.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for taigae2ee-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6630281e8654cc39354f2ace8f253abc09827cc229ef28be838684eaf9d32c7a
MD5 8a19ad3085147c6b219f1ed0993b370d
BLAKE2b-256 6eb706c91c378b8dc28fffc3194acc9036ba0d5986792569083dbd187dbaa9af

See more details on using hashes here.

File details

Details for the file taigae2ee-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: taigae2ee-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for taigae2ee-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 14ed7cac22d5b12b644dc2196f052cf987f20d3ea60022df3965e68da8c36fa1
MD5 6f6eadbf8f6f9034bc324bf50db66999
BLAKE2b-256 c76d4f92d54b9c1f5dfda892b9b0c70ceabb4c239a24b7af352785b0b63df902

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page