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.18rc3-py2.py3-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c16a9a7de83d7b58fe9bdf7a0fac7bb5f66246e54c6da4835bc413b25da20453 |
|
MD5 | 4d01a37fa4ac754dacbd79f076f570a9 |
|
BLAKE2b-256 | 21e083712478a90696d855fdd6b49f7f6028785bacfaeaa8a87972b31c03b006 |
Hashes for python_challenge_bypass_ristretto-2021.3.18rc3-py2.py3-none-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60268d87350eee5f94b3c6a952d77c3530bd679a26899bab9822de32ecb71208 |
|
MD5 | 6e6732b3b6eb9787bf8839459104aaba |
|
BLAKE2b-256 | b9b9395e196b313d73bebd1de0fcfffcfc7b3e5e2c0b4b86604b02d4515da9de |
Hashes for python_challenge_bypass_ristretto-2021.3.18rc3-py2.py3-none-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a8ac31261773b69a1eefe62acd28df1f444e6d0cf2f07a939276f56beb354b7 |
|
MD5 | a91d96c909cad1fce72c53599f0f96f6 |
|
BLAKE2b-256 | 038bfc7f5a08b38b78733aa3734690e7aa7f6606725e452225f3ce520041dced |
Hashes for python_challenge_bypass_ristretto-2021.3.18rc3-py2.py3-none-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3dfdbd9ff02137fbb661ba67ba098682394e6277bb1e0d90ec48c72774224b57 |
|
MD5 | df138494df68a72119827f19cc375ea6 |
|
BLAKE2b-256 | e6797de32b633ecb9c6daccfa11df5a0c5924857d9470eb07b9c6a4fc77f4643 |