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)
```

Metadata

Release files for trustpilot-authenticated-encryption 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for trustpilot-authenticated-encryption 1.1.0
File Size Uploaded Provenance
trustpilot_authenticated_encryption-1.1.0.tar.gz 2.0 kB Without provenance Details

Release files / trustpilot_authenticated_encryption-1.1.0.tar.gz

Download URL trustpilot_authenticated_encryption-1.1.0.tar.gz
Size 2.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8bb1883dbb6af6ab7dff70143fff3874cd81ba5589f18981c317f58d121ca763
BLAKE2b-256 checksum
How to use checksums
af42ac2475e3c40699f00784f2d7398ecfab53c114add036ce15aea66a6b4ac5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.6

Security for trustpilot-authenticated-encryption 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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