Bindings for Brave's Ristretto-flavored Privacy Pass library.
Project description
python-challenge-bypass-ristretto
Python bindings for Brave's privacy pass library using the provided ffi APIs.
Usage
The API largely mirrors that of the underlying Rust library with a few classes thrown in. For example:
>>> from challenge_bypass_ristretto import RandomToken
>>> print(RandomToken.create().blind().encode_base64())
QxE220HfZvvOJSNdDx3hgYNfQntxeT+mkRr55LNMNyYdXdFOfkrHRoQz+MXlqfyoiWPWc7dG3k4sa5ZWDv+9WtPkZf1uZVhTwBW4YKgyPXK3jj4Ig7kKDjcGMGtoCdgJ
How to install
Binary wheels for Linux (manylinux2010), macOS, and Windows are distributed on PyPI.
pip install python-challenge-bypass-ristretto
How to build
The Rust FFI library is a git submodule, so to clone all sources needed for a build:
git clone --recursive https://github.com/LeastAuthority/python-challenge-bypass-ristretto
Then, with the Rust and Python toolchains installed:
python setup.py build sdist bdist_wheel
pip install --editable .
There is also Nix-based package which manages most of this complexity for you and only requires a checkout:
nix-build
License
Currently the same license as the Brave's library, Mozilla Public License v2.
Copyright
Least Authority TFA GmbH
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for python_challenge_bypass_ristretto-2021.3.18rc1-py2.py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 986e3c244391d4ed28336ac23f11c64c0b377d1f6b1a4428301e78380b4e0098 |
|
MD5 | 16e4682b321cd4423861ee0baa0a8158 |
|
BLAKE2b-256 | 47884759eacbf0b09bf04d7137d7058b8cbabafb350ebcf64d002a9dd64f2147 |
Hashes for python_challenge_bypass_ristretto-2021.3.18rc1-py2.py3-none-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21d6c5170810af3ea5248521db918128daff160910a0a589e990f1a01fbbd630 |
|
MD5 | 5a62fe965b6123a84ded40f570821541 |
|
BLAKE2b-256 | c3d1186b46bb5cce756396fa4b3f0247b162e4e6a18228e2ef82e830e557dc3f |