Request Signature Verification¶
Module contents¶
- class wyze_sdk.signature.CBCEncryptor(iv: str | bytes)¶
Bases:
object- decrypt(key: str | bytes, data: str | bytes) bytes¶
- encrypt(key: str | bytes, data: str | bytes) bytes¶
- class wyze_sdk.signature.MD5Hasher¶
Bases:
object- hash(data: str | bytes = '') bytes¶
- hex(data: str | bytes = '') str¶
- class wyze_sdk.signature.RequestVerifier(signing_secret: str, access_token: str | None = None, clock: ~wyze_sdk.signature.Clock = <wyze_sdk.signature.Clock object>)¶
Bases:
object- generate_dynamic_signature(*, timestamp: str, body: str | bytes) str | None¶
Generates a dynamic signature
- generate_signature(*, timestamp: str, body: str | bytes) str | None¶
Generates a standard signature
- md5_string(body: str | bytes = '') str¶
- request_id(timestamp: int | None = None)¶