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-2022.6.30-py2.py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67a54ea3ab480b08bdc07ededaf41619f765b4da3d7e45913405c32311ab08fd |
|
MD5 | 8180e9a262c59cba5a5eaa2af2abc5cc |
|
BLAKE2b-256 | d7652291309cd706548519b294f05b0099cba27cbcc27fce09e2d3f51402320d |
Hashes for python_challenge_bypass_ristretto-2022.6.30-py2.py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88ce3693e14a7369fecc9e7dc023b2d07b66a4038d89514d2995c13934720827 |
|
MD5 | 0fba98b109cb5a95e79a786772559b4e |
|
BLAKE2b-256 | e32b8042cfde4f3159ff17fdfe591eb8384f8392400b057081fc35bba7b8c7af |
Hashes for python_challenge_bypass_ristretto-2022.6.30-py2.py3-none-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c28f4eb6fc00896f787df4910bf4b472a41fe230de6e0d9093996547d9c81ef |
|
MD5 | fe058d14ff975f2b532e13e739ead0e3 |
|
BLAKE2b-256 | 20be73fc7b234105497ed880283434adfe919b9c6711db43e8655f1a9f3a67f2 |
Hashes for python_challenge_bypass_ristretto-2022.6.30-py2.py3-none-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2059e46a01f5ce8b890f4d694a862924c1df19e8a31a54325efc79bab1597ccf |
|
MD5 | fefb88c5dd59957f3a1dc11617403bc2 |
|
BLAKE2b-256 | 02b991d13cbd1df3de398c9ee9416d000facd753eaf429dd6d63470d6f40e0d8 |