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.7.12-py2.py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 491ce8336d815d189ded9ee356389e2a099304bfbeeefef5dd78521c2a508285 |
|
MD5 | aff187636c4de48d8f1850cd03f1bf52 |
|
BLAKE2b-256 | 4e7cc4cb137e52b23effde929c153e251046784a7e21760c101349587c0448e5 |
Hashes for python_challenge_bypass_ristretto-2021.7.12-py2.py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 317bf6e8abfbc693a1ab01f53c1b342cb1983df1bd746284a332fc33aab6b0a7 |
|
MD5 | fb39b9f7b0c82da74ede4f852709b6c2 |
|
BLAKE2b-256 | c42235bb09d5d8b7ba72bed5a99625d73377d9e5a6c532ca99756b02cbcd9341 |
Hashes for python_challenge_bypass_ristretto-2021.7.12-py2.py3-none-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5c26132a419f07b9725fffe55f1d341a699124ae4d789cdd797efb4db2d56ea |
|
MD5 | 489cd79acb5dfc8402f272d935fc3f18 |
|
BLAKE2b-256 | 6f86adf89325074e9dbcbd6a29fe2b227119b3af1cd8d0573119bef5404529b7 |
Hashes for python_challenge_bypass_ristretto-2021.7.12-py2.py3-none-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f378a018d8e319b1f3d4e566ab08b944ccbabda9e3def4949d3eab0bed23f15 |
|
MD5 | 09b4c33c7e4911587e7f664fd9e24ac8 |
|
BLAKE2b-256 | 525350f2ce8ec018b1f96b269990d42f235e8c0161488b1482b106f082025298 |