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

Uploaded Python 2 Python 3 Windows x86-64

python_challenge_bypass_ristretto-2020.4.3rc1-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.4.3rc1-py2.py3-none-macosx_10_15_x86_64.whl (200.4 kB view details)

Uploaded Python 2 Python 3 macOS 10.15+ x86-64

File details

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

File metadata

File hashes

Hashes for python_challenge_bypass_ristretto-2020.4.3rc1-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 c0a475f8ed7081436821c799dc684389d1c00c5d27445fc30fa3922305d75393
MD5 c11a834685c541a43492d93e784bd872
BLAKE2b-256 cf9502a71a4f8e43ba3112441c4069cfb6f3a476f77c2e25dd01fea4b709519a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for python_challenge_bypass_ristretto-2020.4.3rc1-py2.py3-none-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 f8100aaedbae7d44abcea6d4335833b9ddb629a294251b1cc79b84f6efb6608b
MD5 f02ab941da2f0ce549864eefa3398eec
BLAKE2b-256 f2c67f599a4ebcefa327f0cfd842ef570e1f1bd5afcb71fa9566134723313871

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for python_challenge_bypass_ristretto-2020.4.3rc1-py2.py3-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 cb65939f74919ec6cbcb0f5c039936c05790615654a92abe065c6bc29d7b2d84
MD5 1297ea3ab018dffec0ea37bdcfdcb8ff
BLAKE2b-256 5317e107fef23a92f9711631c5cbfc52d78e2a7e560f2f37cd62cc3a4e1c1572

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