<?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>NRF52832  Passkey Length setting</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61667/nrf52832-passkey-length-setting</link><description>hello, 
 I am using SDK16 ble_app_gls example . I set static passkey with adding this code in ble_stack_init function. 
 When I write password &amp;quot;123456&amp;quot; I can connect on nrf connect app but if I write &amp;quot; 123456789&amp;quot; again I can connect . This should not</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 24 May 2020 21:40:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61667/nrf52832-passkey-length-setting" /><item><title>RE: NRF52832  Passkey Length setting</title><link>https://devzone.nordicsemi.com/thread/251366?ContentTypeID=1</link><pubDate>Sun, 24 May 2020 21:40:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7693750e-f6fe-4109-9454-c54ecc01657a</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;The reason it works with &amp;quot;123456789&amp;quot; is that the passkey entry method uses a passkey of consisting of 6 digits, no more or less. So the value(s) you type in the nRF Connect app after the 6&amp;#39;th digit doesn&amp;#39;t matter (I have not tested this myself, but it seems like it is the case based on your text). See &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/42867/maximum-passkey-length"&gt;this ticket&lt;/a&gt; for more information&lt;/p&gt;
&lt;p&gt;I would like to know what your underlying issue is? Why does it matter that it works with some extra garbage values at the end? It does not affect the security in any way since the length is fixed at 6 digits.&lt;/p&gt;
&lt;p&gt;If you would like to increase the security of your device and reduce the chance of a MITM attack, take a look at &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/35856/questions-about-lesc-mitm-and-passkey/138216#138216."&gt;this ticket&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>