# Trustpilot authenticated encryption for python
[](https://travis-ci.org/trustpilot/python-authenticated-encryption) [](https://pypi.python.org/pypi/trustpilot_authenticated_encryption) [](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)
```
[](https://travis-ci.org/trustpilot/python-authenticated-encryption) [](https://pypi.python.org/pypi/trustpilot_authenticated_encryption) [](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
File details
Details for the file trustpilot_authenticated_encryption-1.1.0.tar.gz.
File metadata
- Download URL: trustpilot_authenticated_encryption-1.1.0.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
Python-urllib/3.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8bb1883dbb6af6ab7dff70143fff3874cd81ba5589f18981c317f58d121ca763
|
|
| MD5 |
4ec5879890dbba46087b12d3f5926201
|
|
| BLAKE2b-256 |
af42ac2475e3c40699f00784f2d7398ecfab53c114add036ce15aea66a6b4ac5
|