Module for decrypting doubleclick price confirmations
Project description
DoubleClickCrypto
Python module for decrypting doubleclick price confirmations.
Installation
pip install doubleclickcrypto
Features
The module handles decryption of price confirmations and advertising identifiers with signature checking and, for price confirmations, stale response handling.
Example usage
Look at the test cases in the source for more examples.
Price decryption
from doubleclickcrypto import DoubleClickCrypto
e_key = "skU7Ax_NL5pPAFyKdkfZjZz2-VhIN8bjj1rVFOaJ_5o="
i_key = "arO23ykdNqUQ5LEoQ0FVmPkBd7xB5CO89PDZlSjpFxo="
cipher = "YWJjMTIzZGVmNDU2Z2hpN7fhCuPemCce_6msaw"
DoubleClickCrypto.decrypt_price(cipher, e_key, i_key)
# -> 100
# Check for stale responses
DoubleClickCrypto.decrypt_price(cipher, e_key, i_key, max_timedelta_seconds=0)
# -> throws StaleResponseException
Advertising id decryption
from doubleclickcrypto import DoubleClickCrypto
e_key = "sIxwz7yw62yrfoLGt12lIHKuYrK_S5kLuApI2BQe7Ac="
i_key = "v3fsVcMBMMHYzRhi7SpM0sdqwzvAxM6KPTu9OtVod5I="
cipher = "5nmwvgAM0UABI0VniavN72_tyXf-QJOmQdL0tmh_fduB2go_"
DoubleClickCrypto.decrypt_ad_id(cipher, e_key, i_key)
# -> bytes([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15])
Repository
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file doubleclickcrypto-0.1.1.tar.gz.
File metadata
- Download URL: doubleclickcrypto-0.1.1.tar.gz
- Upload date:
- Size: 3.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 |
1f309f7bc13d7eeed4880822040ac5b8a6aed5b6cf7c15d5d489ec49be97d3c6
|
|
| MD5 |
bc3cd231289ab7a979137e05c0dde164
|
|
| BLAKE2b-256 |
f5220cc8151c439a4efc135f47cd298476792b6794803f56ee269024e8d03633
|
File details
Details for the file doubleclickcrypto-0.1.1-py3-none-any.whl.
File metadata
- Download URL: doubleclickcrypto-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.2 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 |
1d79d9a7cece68af41623c988d9a5b4e456c12e549ac89ea7ce1a7ab6799c670
|
|
| MD5 |
e1f6c62b030c7fe9feaa135d4d44a947
|
|
| BLAKE2b-256 |
596e167a53805d7db227a803891704c95139ec150908ac2d4955991dfa7f8e56
|