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 Distribution

Built Distributions

python_challenge_bypass_ristretto-2023.1.23rc1-py2.py3-none-win_amd64.whl (167.6 kB view details)

Uploaded Python 2 Python 3 Windows x86-64

python_challenge_bypass_ristretto-2023.1.23rc1-py2.py3-none-macosx_12_0_x86_64.whl (275.8 kB view details)

Uploaded Python 2 Python 3 macOS 12.0+ x86-64

python_challenge_bypass_ristretto-2023.1.23rc1-py2.py3-none-macosx_11_0_x86_64.whl (275.9 kB view details)

Uploaded Python 2 Python 3 macOS 11.0+ x86-64

python_challenge_bypass_ristretto-2023.1.23rc1-py2.py3-none-macosx_10_15_x86_64.whl (275.8 kB view details)

Uploaded Python 2 Python 3 macOS 10.15+ x86-64

File details

Details for the file python-challenge-bypass-ristretto-2023.1.23rc1.tar.gz.

File metadata

File hashes

Hashes for python-challenge-bypass-ristretto-2023.1.23rc1.tar.gz
Algorithm Hash digest
SHA256 98dc87717dcbcfdae5364b4c1c3fb368db419672ceebf96ea0d97a2e559fa4ec
MD5 e90d92ef63f20d52889c319c93f01061
BLAKE2b-256 8477535812d52aca07b6758f76fc663865a9593ff0cf2a9d7fe2bcba7c3ca674

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for python_challenge_bypass_ristretto-2023.1.23rc1-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 1afd270020a1b6c3cad148087f5a445b6efb94f1335fe092d84efc2119bd9490
MD5 38b2d4463658ac1cce022b32fc3d4d5a
BLAKE2b-256 1b67bd63a36877cafa44072994939122b55d19daf7f798e11aef2d41b27adce0

See more details on using hashes here.

File details

Details for the file python_challenge_bypass_ristretto-2023.1.23rc1-py2.py3-none-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for python_challenge_bypass_ristretto-2023.1.23rc1-py2.py3-none-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 67200bf511ff001ab8d84f5664d426de6a09dd06e8625ddc9f9f2f6aca8fdedd
MD5 918687451591ef31746f2224845c972d
BLAKE2b-256 811d3a61e5de73eca432e2886120bd0471d37664662a62f9596b5fae3c51dd66

See more details on using hashes here.

File details

Details for the file python_challenge_bypass_ristretto-2023.1.23rc1-py2.py3-none-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for python_challenge_bypass_ristretto-2023.1.23rc1-py2.py3-none-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 8bb225e4bfb3a88f2210414e887cbe48a14f8eee0a8f4f5254a2359046a37472
MD5 7a792bbf3bb030f18eecbe9beac864ef
BLAKE2b-256 e996b37bbf2aca0abb2d92420bf721ecd18eb5d15d364b2569f1aeb9734ac889

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for python_challenge_bypass_ristretto-2023.1.23rc1-py2.py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 1474452242bc4b0fb2c8efa57d22ad9036f77ade9b1c5914ff27e2b9e3019f04
MD5 ed8d638b596d066ff11d8c4f85ecab7b
BLAKE2b-256 7685e0841708a945d883dc518810b9431fcb2ccbd4f5c1d222da8f57267c6742

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