pico-examples icon indicating copy to clipboard operation
pico-examples copied to clipboard

PicoW Peripheral Secure Connection

Open mytechnotalent opened this issue 2 years ago • 7 comments

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.

mytechnotalent avatar Jan 01 '24 00:01 mytechnotalent

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 )

lurch avatar Jan 01 '24 02:01 lurch

I think he's referring to pairing in Bluetooth

peterharperuk avatar Jan 01 '24 09:01 peterharperuk

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!

mytechnotalent avatar Jan 01 '24 13:01 mytechnotalent

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

matsobdev avatar Feb 28 '24 07:02 matsobdev

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

mytechnotalent avatar Feb 28 '24 16:02 mytechnotalent

this has licensing requirements.

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

lurch avatar Feb 28 '24 17:02 lurch

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.

matsobdev avatar Feb 29 '24 20:02 matsobdev