Skip to content

feat: sat: add option to decrypt sat packets given the key#33

Open
HongNguyen635 wants to merge 1 commit into
HubbleNetwork:mainfrom
HongNguyen635:sat/decrypt_packet
Open

feat: sat: add option to decrypt sat packets given the key#33
HongNguyen635 wants to merge 1 commit into
HubbleNetwork:mainfrom
HongNguyen635:sat/decrypt_packet

Conversation

@HongNguyen635
Copy link
Copy Markdown

@HongNguyen635 HongNguyen635 commented May 4, 2026

Add option to decrypt satellite packets given the key. Sat use the same encryption scheme as BLE, so we can reuse the existing decrypt path. key is an optional arg.

Needs HubbleNetwork/sdr-docker#17 in order to work.

decrypted packet will look like this:

hubblenetwork sat scan --key "b64key" --payload-format hex
[INFO] Starting satellite receiver... (Press Ctrl+C to stop)
[INFO] Waiting for receiver API to be ready...
[INFO] Receiver ready, listening for packets...

+--------------+--------+----------+----------------------------+----------+----------+--------------+----------------------+
| DEVICE_ID    | SEQ    | TYPE     | TIME                       | RSSI_DB  | CHANNEL  | FREQ_OFFSET  | PAYLOAD              |
+--------------+--------+----------+----------------------------+----------+----------+--------------+----------------------+
| 0x1BA456EE   | 103    | nordic   | Mon May  4 23:47:07 2026   | -36.6    | 2        | 22885.2      | AABBCCDD             |
+--------------+--------+----------+----------------------------+----------+----------+--------------+----------------------+
| 0x1BA456EE   | 104    | nordic   | Mon May  4 23:47:17 2026   | -37.4    | 10       | 23967.2      | AABBCCDD             |
+--------------+--------+----------+----------------------------+----------+----------+--------------+----------------------+

otherwise encrypted packet will be output:

hubblenetwork sat scan
[INFO] Starting satellite receiver... (Press Ctrl+C to stop)
[INFO] Waiting for receiver API to be ready...
[INFO] Receiver ready, listening for packets...

+--------------+--------+----------+----------------------------+----------+----------+--------------+----------------------+
| DEVICE_ID    | SEQ    | TYPE     | TIME                       | RSSI_DB  | CHANNEL  | FREQ_OFFSET  | PAYLOAD              |
+--------------+--------+----------+----------------------------+----------+----------+--------------+----------------------+
| 0x1BA456EE   | 154    | nordic   | Mon May  4 23:55:57 2026   | -35.8    | 13       | 24236.6      | StguVA==             |
+--------------+--------+----------+----------------------------+----------+----------+--------------+----------------------+
| 0x1BA456EE   | 155    | nordic   | Mon May  4 23:56:08 2026   | -34.4    | 17       | 24751.3      | q7AElg==             |
+--------------+--------+----------+----------------------------+----------+----------+--------------+----------------------+

Add option to decrypt satellite packets given the key.
Sat use the same encryption scheme as BLE, so we can reuse the
existing decrypt path.

Signed-off-by: Hong Nguyen <hong@hubble.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant