Skip to content

Latest commit

 

History

History
55 lines (37 loc) · 1.76 KB

File metadata and controls

55 lines (37 loc) · 1.76 KB

python-streebog

Python ctypes wrapper for the GOST R 34.11-2012 (RFC 6986) hash function. Internally, it uses the streebog C library developed by Alexey Degtyarev.

Prerequisites

To use this Python module, you need to install the streebog shared library on your system. You can do this in two ways:

  1. Install pre-built RPM packages from my OBS repository. See the README.md in the corresponding repository (Gitverse mirror: README.md) for detailed instructions.
  2. Build and install the library manually. The upstream project's build scripts do not support this out of the box, but you can find the required patches in my fork.

Installation

Use the following commands to install python-streebog using pip:

# From Github mirror:
$ pip install git+https://github.com/ezamriy/python-streebog.git@0.1.0

# From Gitverse mirror:
$ pip install git+https://gitverse.ru/ezamriy/python-streebog.git@0.1.0

Usage

See the tests directory for usage examples.

License

This project is dual-licensed. You may choose to use it under either:

at your option.

SPDX-License-Identifier: BSD-2-Clause OR GPL-2.0-or-later

python-streebog uses streebog by Alexey Degtyarev, which is licensed under the same dual terms. See its repository for details.

Authors