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-2020.4.3-py2.py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bed52f060d7c428b165c2197e12a42eb1248fe4e7eec13bec9b3529caf4983b1 |
|
MD5 | 524b433aaa539a24919d072bff67e6cd |
|
BLAKE2b-256 | 5f63a72e6c5acfd02e9f11c0f0855b5dfdf7e930398d59889351c31c75342351 |
Hashes for python_challenge_bypass_ristretto-2020.4.3-py2.py3-none-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93cf5bb17ec2833b49282a674e741fbd0e2f6f6e03d8888188fe5169641a4b4d |
|
MD5 | 6a99fb86da1e819d9aabd8069b508787 |
|
BLAKE2b-256 | 66c5e24fa7788f95e57a6a45c5ef0b69321938238bd75683d523d853c25cadb5 |
Hashes for python_challenge_bypass_ristretto-2020.4.3-py2.py3-none-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d29762a2b2a0b3110d8d1c16554c7ebb3099e5d81c51dd897841f7c774692e95 |
|
MD5 | b4629fdbdde91bb9c92bdc532044cada |
|
BLAKE2b-256 | 0abd549bef7e0714c5e2cef6019b93d4cbffc3b17550f19e44ff02a5590f529d |