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.18-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.18-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.18-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.18-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.18-py2.py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for python_challenge_bypass_ristretto-2021.3.18-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 eba874e4f0e120874051e1c79b0e62f7909ff24f5664e87192f5866ec1bf5d29
MD5 9771ccfc3a355401ec18d7a6d65335a4
BLAKE2b-256 0f16d092109ea86e86fd8f3c844126c09cd2fb7338df16745de77088a670bf97

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for python_challenge_bypass_ristretto-2021.3.18-py2.py3-none-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 64564ca296418ca8219572100cf9719313d5091a32318156bc840729806538eb
MD5 e700ae1230267c59fae0794abf5f9a04
BLAKE2b-256 c3bf5413f0b703e3367c420dde7b8d240e22caef0a52be7ca2201cb7c4bd50f8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for python_challenge_bypass_ristretto-2021.3.18-py2.py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 e882f737444d64d4808f0d81393ea9901a47f371b7122a1bc3e024ee42c35fca
MD5 e9787a40c40bacfa0a40813933e1b0aa
BLAKE2b-256 dfc46ee2d370264cdc6ea5a248878226f9397cbc52a89bcf8b453bce15e9db45

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for python_challenge_bypass_ristretto-2021.3.18-py2.py3-none-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 8f2a7be0f2f814d632fed62a3ad9a222fb65852dfcbbea1ee6af50a7e590f41a
MD5 640a5cc0c6e13b8eb18594c60252ec0b
BLAKE2b-256 f3f43a2b16cc31adce8bf4a1de5a8a714760dac7abc1ff7d796c14b897ae9e33

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