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.
To use this Python module, you need to install the streebog shared library on your system. You can do this in two ways:
- Install pre-built RPM packages from my OBS repository. See the README.md in the corresponding repository (Gitverse mirror: README.md) for detailed instructions.
- 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.
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.0See the tests directory for usage examples.
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.