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-2022.6.30rc1-py2.py3-none-win_amd64.whl (160.7 kB view details)

Uploaded Python 2 Python 3 Windows x86-64

python_challenge_bypass_ristretto-2022.6.30rc1-py2.py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (1.0 MB view details)

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

python_challenge_bypass_ristretto-2022.6.30rc1-py2.py3-none-macosx_11_0_x86_64.whl (260.4 kB view details)

Uploaded Python 2 Python 3 macOS 11.0+ x86-64

python_challenge_bypass_ristretto-2022.6.30rc1-py2.py3-none-macosx_10_15_x86_64.whl (260.4 kB view details)

Uploaded Python 2 Python 3 macOS 10.15+ x86-64

File details

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

File metadata

File hashes

Hashes for python_challenge_bypass_ristretto-2022.6.30rc1-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 ca7f40491bc559c54fc679b73b726e58ec4061b2837e5a4cb2f632ddf258ecd7
MD5 0ddc7dacf518c3d403638c9ea17d73e0
BLAKE2b-256 ec20e813606db1fb85d79934f0be493f1f473a1612615d304a45fe6d45ef5621

See more details on using hashes here.

File details

Details for the file python_challenge_bypass_ristretto-2022.6.30rc1-py2.py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for python_challenge_bypass_ristretto-2022.6.30rc1-py2.py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 6e1409d0344ed4a8b6f9913935394d561b3e775d9f2998d4d7eabdfd16d8cd0d
MD5 b873ec69e985a3ba6f99b4153281eb4f
BLAKE2b-256 74da85b555212d22c03a5a46e545711c7fd93d1e140f5eb9cda5742dc2022585

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for python_challenge_bypass_ristretto-2022.6.30rc1-py2.py3-none-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 41673decc07e0271b530b70e0978170904e498b9851130a148a2bd9c5b1ad4d0
MD5 250f69f44eee2501d2a0a2ed1fdda52e
BLAKE2b-256 9326f6ef99c52b575edd3d9c5884645efdee2cf7ecc46d0414614775ae5c4db9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for python_challenge_bypass_ristretto-2022.6.30rc1-py2.py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 2503ee5ae72d9252145b0b618d092325942a67a7a1d7931530a55ff252132b98
MD5 2d3bf572cd5acb5279ce8b71191f1535
BLAKE2b-256 91a54bb39ffd891a0f74f9fa9172000a07d5eb730d05a2ba9b92afd2222389ed

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