raspberrypi / pico-examples

BSD 3-Clause "New" or "Revised" License
2.83k stars 820 forks source link

PicoW Peripheral Secure Connection #457

Open mytechnotalent opened 9 months ago

mytechnotalent commented 9 months ago

Can you please add a PicoW Peripheral Secure Connection example as the only ones available are plain text that can be seen by any sniffer.

lurch commented 9 months ago

I'm not sure exactly what you're asking for, but are you looking for https://github.com/raspberrypi/pico-examples/tree/master/pico_w/wifi/tls_client ? (which was added in #305 )

peterharperuk commented 9 months ago

I think he's referring to pairing in Bluetooth

mytechnotalent commented 9 months ago

Yes @peterharperuk is correct I am referring to pairing in BLE I would love an example of such as the TLS example is great for WiFi but a BLE pairing example would be ideal and necessary for any real Bluetooth dev on the PicoW thank you in advance!

matsobdev commented 7 months ago

There is picow_bt_example_sm_pairing_peripheral with corresponding .gatt file to encrypt characteristic data as well.

mytechnotalent commented 7 months ago

Thank you @matsobdev I was hoping for something within the current RPI stack as this has licensing requirements.

lurch commented 7 months ago

this has licensing requirements.

See https://github.com/raspberrypi/pico-sdk/blob/master/src/rp2_common/pico_btstack/LICENSE.RP

matsobdev commented 7 months ago

For example hog examples :P might be helpful as well, you can trace hids.gatt file and see how transferred data are secured with ENCRYPTION_KEY_SIZE_16 and apply the same to for example nRF serial like.