<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Ble Encrytion using AES</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95827/ble-encrytion-using-aes</link><description>Hello Nordic Team, 
 I am working on the encrypting and decrypting the data sent/receive from ble, Can anyone please suggest an example to encrypt the ble data using AES. 
 Regards, 
 Shafi</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 19 Jan 2023 12:42:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95827/ble-encrytion-using-aes" /><item><title>RE: Ble Encrytion using AES</title><link>https://devzone.nordicsemi.com/thread/405670?ContentTypeID=1</link><pubDate>Thu, 19 Jan 2023 12:42:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c9415ee-366a-4d5d-91c7-99aa2848b217</guid><dc:creator>shafi</dc:creator><description>&lt;p&gt;Hi Helsing,&lt;/p&gt;
&lt;p&gt;Thank you for the reply, I am working NRF52840, which is used to send data received over UART to mobile app using uart service. I have&amp;nbsp;enabled pairing and bonding, but i also need to encrypt the data sent after pairing.&lt;/p&gt;
&lt;p&gt;When i compile the Crypto:AES i am getting this error&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1674131908157v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;How do i know the data i am sending is encrypted?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Shafi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble Encrytion using AES</title><link>https://devzone.nordicsemi.com/thread/405661?ContentTypeID=1</link><pubDate>Thu, 19 Jan 2023 12:14:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4b4b9c4-5d74-4fce-b26b-db485e96004f</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Hello Shafi, &lt;/p&gt;
[quote user=""]I am working on the encrypting and decrypting the data sent/receive from ble[/quote]
&lt;p&gt;Would you be able to share a little more context regarding what you would like to achieve? &lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Have you had a look at our &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/samples_crypto.html"&gt;Cryptography samples&lt;/a&gt;? If you would like to do the same as the Bluetooth stack is doing, then you could take a look at the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/crypto/aes_ccm/README.html"&gt;Crypto: AES CCM&lt;/a&gt; sample.&lt;/p&gt;
&lt;p&gt;All our Bluetooth samples that includes paring+bonding enables encryption when paring+bonding, for example the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/peripheral_uart/README.html"&gt;Bluetooth: Peripheral UART&lt;/a&gt; sample.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>