Library for authenticated encryption used with Trustpilot
Project description
# 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)
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size trustpilot_authenticated_encryption-1.1.0.tar.gz (2.0 kB) | File type Source | Python version None | Upload date | Hashes View |
Close
Hashes for trustpilot_authenticated_encryption-1.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8bb1883dbb6af6ab7dff70143fff3874cd81ba5589f18981c317f58d121ca763 |
|
MD5 | 4ec5879890dbba46087b12d3f5926201 |
|
BLAKE2-256 | af42ac2475e3c40699f00784f2d7398ecfab53c114add036ce15aea66a6b4ac5 |