<?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>Bonding without passkey is possible using nRF51822?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/2207/bonding-without-passkey-is-possible-using-nrf51822</link><description>Hi, 
 I was wondering whether bonding between devices is possible without using a passkey. 
 I found a good documentation by Nordic Semi which illustrates all the bonding , pairing process in Message Sequence Charts. 
 By analysing them I concluded</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 13 Jun 2014 05:23:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/2207/bonding-without-passkey-is-possible-using-nrf51822" /><item><title>RE: Bonding without passkey is possible using nRF51822?</title><link>https://devzone.nordicsemi.com/thread/9324?ContentTypeID=1</link><pubDate>Fri, 13 Jun 2014 05:23:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa96e4b6-5961-45cd-950d-c29bd30f86ed</guid><dc:creator>Mo A</dc:creator><description>&lt;p&gt;Hi Leo, I am doing this using  &amp;#39;just works&amp;#39; (as mentioned) . I haven&amp;#39;t tried with the static key. I too was waiting for a reply to my last comment on the answer below.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding without passkey is possible using nRF51822?</title><link>https://devzone.nordicsemi.com/thread/9323?ContentTypeID=1</link><pubDate>Thu, 15 May 2014 04:21:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:489abf53-662a-4a9d-a8a1-2c4cea538c40</guid><dc:creator>Leo Fu</dc:creator><description>&lt;p&gt;Hi Mo, have you confirmed that it is possible or not to add a different static key like 123456 on both sides in bonding?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding without passkey is possible using nRF51822?</title><link>https://devzone.nordicsemi.com/thread/9327?ContentTypeID=1</link><pubDate>Tue, 15 Apr 2014 06:36:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:390a282f-29c7-4852-a21a-f1acffe2ce15</guid><dc:creator>Mo A</dc:creator><description>&lt;p&gt;Thanks again Ulrich,&lt;/p&gt;
&lt;p&gt;So it is like the key is entered automatically, there is no provision for the developer to add a different static key like 123456 ( also say the phone app developer that I am using this key)? Am I right?&lt;/p&gt;
&lt;p&gt;I wanted to test the &amp;#39;Bonding&amp;#39; in nRF51822.  I used the &amp;#39;ble_app_hrs&amp;#39; for this. I made the macro SEC_PARAM_BOND as 0 from 1. When I downloaded the code, It was showing in the Master Control Panel and I was able to click &amp;#39;Bond&amp;#39; there, and It was bonding to the device (I guess) as when I pressed bond next time it was showing bond already exists. Why is this so ? Any other way to test bonding and storing of the peripheral keys?
(Here the app nrf utility(in phone) is not able to connect to the device)&lt;/p&gt;
&lt;p&gt;Once the bonding is done can my nRF51822 peripheral be connected to the respective Phone/master whenever they comes in range?&lt;/p&gt;
&lt;p&gt;(Sorry for asking more questions, A newbie)&lt;/p&gt;
&lt;p&gt;Mo&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding without passkey is possible using nRF51822?</title><link>https://devzone.nordicsemi.com/thread/9328?ContentTypeID=1</link><pubDate>Mon, 14 Apr 2014 21:08:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9a43a9c-5248-481e-965e-efaf4b8b0f6a</guid><dc:creator>Ulrich Myhre</dc:creator><description>&lt;p&gt;When using S110, the zeroed key will be entered automatically, but some phone vendors will (erroneously) make you enter a PIN with only zeros, so it&amp;#39;s something to just keep in mind.&lt;/p&gt;
&lt;p&gt;Bluetooth LE is not very secure when using PIN authentication, because the number of possible codes is pretty low. To reiterate: OOB pairing is quite secure, PIN authentication is slightly more secure than JustWorks, and JustWorks is not very secure at all. The danger is someone sniffing the traffic the moment where the keys are exchanged. If you are able to reduce TX power and hold the devices close to eachother (and/or shield them from other devices), this will be much harder to do.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding without passkey is possible using nRF51822?</title><link>https://devzone.nordicsemi.com/thread/9326?ContentTypeID=1</link><pubDate>Mon, 14 Apr 2014 11:34:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:463a5465-f592-4545-9411-10250028a338</guid><dc:creator>Mo A</dc:creator><description>&lt;p&gt;Thanks a lot Ulrich for the reply,&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;The passkey  you have mentioned &amp;#39;000000&amp;#39; which both devices will agree, Is this automatic or should we provide this in the code in both devices? Where can be the proper place in code&amp;quot;  (Or this is done indirectly by setting MITM to 0 and IO capabilities to &amp;quot;BLE_GAP_IO_CAPS_NONE&amp;quot; )&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In the second para , you have mentioned &amp;quot;If this is not available, passkey authentication can be made more secure by reducing the transmitting power during the bonding.&amp;quot;    But I am afraid it is again using a passkey.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;regards,
Mo&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bonding without passkey is possible using nRF51822?</title><link>https://devzone.nordicsemi.com/thread/9325?ContentTypeID=1</link><pubDate>Sun, 13 Apr 2014 03:41:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:743d0fdb-66a5-46c5-9bef-ab5977ff60d7</guid><dc:creator>Ulrich Myhre</dc:creator><description>&lt;p&gt;Yes, you can bond two devices without inputting any out-of-band keys. In that scenario, both the devices will agree to use a passkey equal to 000000. This can be done if you set the MITM bit to 0 (and preferably IO capabilities to &amp;quot;BLE_GAP_IO_CAPS_NONE&amp;quot; ). This is what the Bluetooth Spec calls &amp;quot;Just Works&amp;quot; as you already found out.&lt;/p&gt;
&lt;p&gt;When you pair without man-in-the-middle protection, you risk that someone might be able to listen to the session and save the negotiated keys used for future encryption. This allows an attacker to decrypt future communications easily. It&amp;#39;s recommended to use OOB data for pairing if possible. If this is not available, passkey authentication can be made more secure by reducing the transmitting power during the bonding.&lt;/p&gt;
&lt;p&gt;There are multiple keys that can be exchanged, and I recommend reading either the Bluetooth Spec or external sources to better understand how these are used. The important ones are the:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Encryption Information, which contains the Long Term Key the central will use together with ediv/rand to encrypt connections in the future.&lt;/li&gt;
&lt;li&gt;Identity Information, used for resolvable addresses and privacy.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;For some inspiration on how to accomplish this, you could take a look at the Bond Manager provided by the SDK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>