Source: factory.core/ObjEvent.py
Event tracking handler with encrypted event contents.
Provides functionality for creating encrypted event records,
generating sample event data with fake contents, and
decrypting stored event payloads. Stores events in the
...
| Method | Signature | Description |
|---|---|---|
| decrypt_event_contents | decrypt_event_contents(data: dict, package: str = '') -> dict |
Decrypt the EventContents dictionary of an event. |
| encrypt_event_contents | encrypt_event_contents(event_contents_dict: dict, event_type: str = 'SYS', package: str = '') -> str |
Encrypt event contents and return a JSON event record. |
| generate_event_json | generate_event_json() -> str |
Generate a sample encrypted event JSON record. |
Generate a sample encrypted event JSON record.
Decrypt a hardcoded sample event for testing.
Encrypt a sample payload and then decrypt it.
Check that the ObjEvent module is operational.