Skip to main content

A simple implementation of short authentication strings

Project description

Short authentication strings for Python

This package implements rendering of short authenticated strings, which you can use in your application after an unauthenticated exchange such as a Diffie-Hellman process.

The usual way in which this works is, both sides of the exchange display (hopefully) the same sequence based on the shared key (or a derivative of it), indicating that the shared key is, in fact, shared and has not been tampered with by an active man in the middle.

Here is a sample from a Python REPL:

>>> from shortauthstrings import emoji
>>> print(emoji(bytes([4,88,75,34,99,124])))
🍋 🍧 🍝 🌰 🍮 🦝
>>>

A ready-to-go module to perform Diffie-Hellman key agreement can be found in the blindecdh repository.

See module for more documentation.

This package is distributed under the GNU Lesser General Public License v2.1. For relicensing, contact the package author.

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

shortauthstrings-0.1.8.tar.gz (17.2 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page