Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

python_challenge_bypass_ristretto-2020.3.13-py2.py3-none-win_amd64.whl (166.8 kB view details)

Uploaded Python 2 Python 3 Windows x86-64

python_challenge_bypass_ristretto-2020.3.13-py2.py3-none-manylinux2010_x86_64.whl (760.6 kB view details)

Uploaded Python 2 Python 3 manylinux: glibc 2.12+ x86-64

python_challenge_bypass_ristretto-2020.3.13-py2.py3-none-macosx_10_15_x86_64.whl (200.3 kB view details)

Uploaded Python 2 Python 3 macOS 10.15+ x86-64

File details

Details for the file python_challenge_bypass_ristretto-2020.3.13-py2.py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for python_challenge_bypass_ristretto-2020.3.13-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 277da7a84a67164cd54955d5ec0b11fda8d5c87a983f538662e3a9c30af4ca9c
MD5 ddb02692942637ced2dcdc5f81704173
BLAKE2b-256 55317cd90ab9b19462446258285ae93b49e7f09a9b696557285db892d89ec7cf

See more details on using hashes here.

File details

Details for the file python_challenge_bypass_ristretto-2020.3.13-py2.py3-none-manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for python_challenge_bypass_ristretto-2020.3.13-py2.py3-none-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 39e336dbd77bc1a132018b1955d8f34084149ccf8798532380a887c6a9a706cf
MD5 6a92b58c85234efb0079679c6eb59fc8
BLAKE2b-256 15a920984efdbf184245fd3fda9bbc5afdc2e23b714ab4cfcde30954a8b0df4e

See more details on using hashes here.

File details

Details for the file python_challenge_bypass_ristretto-2020.3.13-py2.py3-none-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for python_challenge_bypass_ristretto-2020.3.13-py2.py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 c1c010c2c1c6811ea768319695260961ce568107fb07c62e2836495a797a0116
MD5 5b06b11877fcecc33965face5d1133eb
BLAKE2b-256 90e5a9b1dfd3fd88030a811839804ce6d375f5e679abfd41301f65792d05d1db

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page