Skip to main content
# Trustpilot authenticated encryption for python

[![Build Status](http://travis-ci.org/trustpilot/python-authenticated-encryption.svg?branch=master)](https://travis-ci.org/trustpilot/python-authenticated-encryption) [![Latest Version](https://img.shields.io/pypi/v/trustpilot_authenticated_encryption.svg)](https://pypi.python.org/pypi/trustpilot_authenticated_encryption) [![Python Support](https://img.shields.io/pypi/pyversions/trustpilot_authenticated_encryption.svg)](https://pypi.python.org/pypi/trustpilot_authenticated_encryption)

Library for authenticated encryption used with Trustpilot.

## Install

```
pip install trustpilot_authenticated_encryption
```

## Usage
To encrypt a message

```
from trustpilot_authenticated_encryption import encryption

message = 'this is the secret message'
encrypt_key = "g9hH6MkVnlKlGa5IG+5R/uKgyrCJxOsh5fXlwK0mjH0="
hash_key = "oGmd/bHHkd+N6P6lZQxyfikjU7c5P/mhWO/noCsERyY="
encrypted_message = encryption.encrypt(message.encode("utf-8"), encrypt_key, hash_key)
```

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trustpilot_authenticated_encryption-1.1.0.tar.gz (2.0 kB view details)

Uploaded Source

File details

Details for the file trustpilot_authenticated_encryption-1.1.0.tar.gz.

File metadata

File hashes

Hashes for trustpilot_authenticated_encryption-1.1.0.tar.gz
Algorithm Hash digest
SHA256 8bb1883dbb6af6ab7dff70143fff3874cd81ba5589f18981c317f58d121ca763
MD5 4ec5879890dbba46087b12d3f5926201
BLAKE2b-256 af42ac2475e3c40699f00784f2d7398ecfab53c114add036ce15aea66a6b4ac5

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.1.0 This release

1 file

1.0.2

1 file

1.0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page