Library for authenticated encryption used with Trustpilot.
pip install trustpilot_authenticated_encryption
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)