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-2021.3.18rc4-py2.py3-none-win_amd64.whl (171.5 kB view details)

Uploaded Python 2 Python 3 Windows x86-64

python_challenge_bypass_ristretto-2021.3.18rc4-py2.py3-none-manylinux2010_x86_64.whl (915.3 kB view details)

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

python_challenge_bypass_ristretto-2021.3.18rc4-py2.py3-none-macosx_10_15_x86_64.whl (261.7 kB view details)

Uploaded Python 2 Python 3 macOS 10.15+ x86-64

python_challenge_bypass_ristretto-2021.3.18rc4-py2.py3-none-macosx_10_14_x86_64.whl (262.6 kB view details)

Uploaded Python 2 Python 3 macOS 10.14+ x86-64

File details

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

File metadata

File hashes

Hashes for python_challenge_bypass_ristretto-2021.3.18rc4-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 8f507f73fbe4c7ac9ed2588c74458f8ba44908448fbf963ad318e3e64c301ad2
MD5 4fdd68b8f1dca44b2fdf3248483a37b2
BLAKE2b-256 ae643797b1b2b23285125a893a4e217ce4d3337fe879d1ac67ff45247d908498

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for python_challenge_bypass_ristretto-2021.3.18rc4-py2.py3-none-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 390f5953279cfda867955967546990718b5f891847f6cbd3d03491dba5e81279
MD5 5f6e16bb3992f7166edfd30c01d8115e
BLAKE2b-256 cb74c3b5eac635355b20ab4db0727dd36e1905e1cf8fc30e2a7e85bb5e08032a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for python_challenge_bypass_ristretto-2021.3.18rc4-py2.py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 5a0eb648cf9c73e9aa306fb75460f8090e9a080b01cf651112d8e0cf2ea1af43
MD5 0adc23c506160c33bf3731ce15cf9011
BLAKE2b-256 e547264cf5e82163b3a5e0696dae180e78be99b718d5880d33624d1cfc255c00

See more details on using hashes here.

File details

Details for the file python_challenge_bypass_ristretto-2021.3.18rc4-py2.py3-none-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for python_challenge_bypass_ristretto-2021.3.18rc4-py2.py3-none-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 9bd4e5c0928c73b059fcc2cb2184e415cddf7a169246e95bf17a9fcbbfd04702
MD5 5712afd1ea3b8f5a28da0262970adb83
BLAKE2b-256 33cfff9c372e302696de3d162d966c2db2235743d32b69093ec213beeece3166

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