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.18rc2-py2.py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e614159da66db9ea886d76d17506af79c637f621c45b206628d2ef59d6fa643c |
|
MD5 | 34dd5551c399e1bc648f726c4e5d57c7 |
|
BLAKE2b-256 | 119c3cd4ad3ab8616f49992acf9355039d89ea25ba1e0a377b7c309da7f4b973 |
Hashes for python_challenge_bypass_ristretto-2021.3.18rc2-py2.py3-none-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61361b33acaaa6f02f5e2f3ec1c27b4b034f5dbad1b87574a47283d7ad2ce713 |
|
MD5 | 39fd91ff673e4ed56c8ef6ed0433b470 |
|
BLAKE2b-256 | ffaf14c50beff1c5d43fa2456001b54854aa31598decb99dcffcb826bcd0d5d8 |
Hashes for python_challenge_bypass_ristretto-2021.3.18rc2-py2.py3-none-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac8c30ef4a2bc72eb1a7d78a5eb684a606c3dd31d3d47881b01dc1cd87523041 |
|
MD5 | f745270d352f60ccb408b775626bc9d3 |
|
BLAKE2b-256 | ac776172d18f0238139b1d286f9866e7223589a489362c092ff21f6aa5cd3e00 |