Skip to main content

amazon-connect-dencryption-lib

Required

Install

$ pip install amazon-connect-decryption-lib

Usage

from amazon_connect_decryption_lib import decrypt

ssm_parameter_name = 'CONNECT_INPUT_DECRYPTION_KEY'
encrypted_text = 'AYADeOCM0sgyKxALhzT1Q0fD+FEAXwABABVhd3MtY3J5cHRvLXB1YmxpYy1rZXkAREFxdnNLME55K1J1R3JSR0lLdmFuSVp5Q254RHpNMTY0ZUx4SUt0RE80czR1QWhKRlV2Tm44VExic0p1UnIvb2FnQT09AAEADUFtYXpvbkNvbm5lY3QAJGE1ZWNkNzQ5LTRiZDgtNGE5NC1iZmRlLTI3ZWVmZTRmMTJiMQIAfQ/ZWMphr1+3+vAd9REB07pMkNP4bgQSamOzwmSHX7B3Fx5GX1wlbkys9yC//5WfUy7ikFKVsy1BpyyGZ3gtkw8+etXt6c/TIScjxHP+4pXFGVHPwTeAPNNERMJwu3P5DyZEEflCDIpP6EtcCBlWgNAu4bOTxEDmUdesR1M3xy/BmIK/daUY9A6Z35NKmS1rV3L8kxPwvLzi93m2vwH1YGXcDcxuL3Iwc6YoTpI0ZIpQtNs30yeYBm1NNW3No76Wq6+dxNTRs5O6moaS0SNYoPrVmBImU7xqvHKoiBJeRxyA20rRPNbyrAZw3kcoLxyuhSqcJJS1NKpuUY/XO4i/xMa5C+ZtzfWbsiUF4ApGzkEVZ/m5iMTIFwI6BVlTV60wVMZkqSaQSnJpoC/qOdWK78LxxdBdmL470lWze0J35Wy7VXynpPAqq9tFYA6Lfq2OyOfjDxj1hwOcaIvjO3yeWCH8SPjer6NChYUUWhLt0CObxaJcHyH5YogzknLyiBAvfvVmlJgP8HcLKg8mJM0GQ+aEokISp9HNIyvFqDTwXsRz2OIdOE2a9qrDirkYC/+HEbkka/hYl4nYr+n+Knn/0RCQ8Nwb7oYk7WnZlU1ADCmYIKjotor2hEK/TlcuxXLylJj8ofgbe8HbsEjFMBdG442b1Eun4r4nUZuLZfm33ncCAAAAAAwAABAAxVaVGO1V9GzHfrF+z1YV08Baa+e9WeAKBoDFiP////8AAAAB4doeJ2gezq6CHwv+AAAADMznKid/99jwAREvH4WZtUbQSJSINk1Jes+EmT8AZzBlAjBdmQ6tP1SFucy/R6YrhrTR29AeBK3qF50WMOZ+TC55Yk3J+QAxy3HhSF4zI6mXn5kCMQC2sBABuFsktmfEvfr1EVWGPGtDYaXEk72ZBR6r3TG/opJSaWuoAUkxxAHCUt6gEl4='

plain_text = decrypt(ssm_parameter_name, encrypted_text)
print(plain_text)  # output is 112344567789

Usage with AWS Lambda

from amazon_connect_decryption_lib import decrypt

def lambda_handler(event, context):
    ssm_parameter_name = 'CONNECT_INPUT_DECRYPTION_KEY'
    encrypted_text = event['Details']['ContactData']['Attributes']['EncryptedNumber']  # EncryptedNumber is your contact attribute name.

    plain_text = decrypt(ssm_parameter_name, encrypted_text)
    print(plain_text)

    return {'DecryptResult': plain_text }

Test(for Developer)

$ python -m unittest

Metadata

Release files for amazon-connect-decryption-lib 0.2.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 amazon-connect-decryption-lib 0.2.0
File Size Uploaded Provenance Actions
amazon-connect-decryption-lib-0.2.0.tar.gz 4.7 kB Without provenance Details for amazon-connect-decryption-lib-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for amazon-connect-decryption-lib 0.2.0
File Interpreter ABI Platform Actions
amazon_connect_decryption_lib-0.2.0-py3-none-any.whl Python 3 none any Details for amazon_connect_decryption_lib-0.2.0-py3-none-any.whl

Total release size: 11.7 kB

Release files / amazon-connect-decryption-lib-0.2.0.tar.gz

Download URL amazon-connect-decryption-lib-0.2.0.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e65523bd87defabfc40d9b50b353a47bd2dadb86df6214ccd5227117502d36fb
BLAKE2b-256 checksum
How to use checksums
5e729a939a9f388fbbeeef05731e444db234e096ab14105ea35a71f0a5b92256
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

Release files / amazon_connect_decryption_lib-0.2.0-py3-none-any.whl

Download URL amazon_connect_decryption_lib-0.2.0-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
54222769cf335d688c7e419672062b4dc7f7184944cd31907d2bee006cd3406a
BLAKE2b-256 checksum
How to use checksums
fcee3e86dd5b4818accd8dfd0ee46e2236253c27cf9d6c7dd10ca84f07e090aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

Security for amazon-connect-decryption-lib 0.2.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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

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