Module for decrypting doubleclick price confirmations
Project description
DoubleClickCrypto
Python module for decrypting doubleclick price confirmations.
See https://developers.google.com/authorized-buyers/rtb/response-guide/decrypt-price.
Installation
pip install git+https://github.com/danielhedren/doubleclickcrypto.git
Example usage
Look at the test cases in the source for more examples.
Simple decryption
from doubleclickcrypto import DoubleClickCrypto
e_key = "skU7Ax_NL5pPAFyKdkfZjZz2-VhIN8bjj1rVFOaJ_5o="
i_key = "arO23ykdNqUQ5LEoQ0FVmPkBd7xB5CO89PDZlSjpFxo="
enc = "YWJjMTIzZGVmNDU2Z2hpN7fhCuPemCce_6msaw"
DoubleClickCrypto.decrypt(enc, e_key, i_key)
# -> 100
Check for stale response
DoubleClickCrypto.decrypt(enc, e_key, i_key, max_timedelta_seconds=0)
# -> throws StaleResponseException
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.
Source Distribution
doubleclickcrypto-0.1.tar.gz
(2.5 kB
view details)
Built Distribution
File details
Details for the file doubleclickcrypto-0.1.tar.gz
.
File metadata
- Download URL: doubleclickcrypto-0.1.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5004049afe795dd297db06e747365515ba16621bc4896cace3ce7aaf40a02eb |
|
MD5 | 7a4d2940573dc889fa971ab113c521af |
|
BLAKE2b-256 | 5a0437b6905645b4c220c17780149cc7de6e9a27b605970c1165a4449d023b9d |
File details
Details for the file doubleclickcrypto-0.1-py3-none-any.whl
.
File metadata
- Download URL: doubleclickcrypto-0.1-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a9a566e4c91f57609d924342dfa57c4556dd914ba9b9eba4e8bac3348af57cf |
|
MD5 | 8006614b74a8c0be14773e7b5a7753c8 |
|
BLAKE2b-256 | ce4faa630cac80b70c2fdc59807866e3b71df6260c12e97ec719374145244ac5 |