<?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>set PASSKEY to 4 digits</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/75415/set-passkey-to-4-digits</link><description>Hello, 
 
 We are using a passkey in our application and by default is 6 digits long. I have found in other posts that this is mandatory a cannot be changed. 
 Is it real? 
 the strange thing is that both iOS and Android suggest a 4 digit PIN by default</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 25 May 2021 07:36:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/75415/set-passkey-to-4-digits" /><item><title>RE: set PASSKEY to 4 digits</title><link>https://devzone.nordicsemi.com/thread/311320?ContentTypeID=1</link><pubDate>Tue, 25 May 2021 07:36:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d56de07-c33c-476a-9660-c25c92c4496d</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]&lt;p&gt;We are using a passkey in our application and by default is 6 digits long. I have found in other posts that this is mandatory a cannot be changed.&lt;/p&gt;
&lt;p&gt;Is it real?&lt;/p&gt;[/quote]
&lt;p&gt;&amp;nbsp;Yes.&lt;/p&gt;
&lt;p&gt;From&amp;nbsp;BLUETOOTH CORE SPECIFICATION Version 5.2 | Vol 3, Part C page 1289 ,&amp;nbsp;&lt;a href="https://www.bluetooth.com/specifications/specs/core-specification/"&gt;https://www.bluetooth.com/specifications/specs/core-specification/&lt;/a&gt;&lt;/p&gt;
&lt;pre&gt;&lt;em&gt;For Secure Simple Pairing and Security Manager, the Bluetooth passkey is a 6-&lt;/em&gt;&lt;br /&gt;&lt;em&gt;digit numerical value.&lt;/em&gt;&lt;/pre&gt;
&lt;p&gt;&lt;em&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;In&amp;nbsp;BR/EDR Legacy Pairing it was possible to use a 4-digit PIN, but this is not possible with Bluetooth Low Energy.&lt;/p&gt;
&lt;p&gt;From BLUETOOTH CORE SPECIFICATION Version 5.2 | Vol 1, Part A page 271&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;pre&gt;&lt;em&gt;Secure Simple Pairing has two security goals: protection against passive&lt;br /&gt;eavesdropping and protection against man-in-the-middle (MITM) attacks&lt;br /&gt;(active eavesdropping). It is a goal of Secure Simple Pairing to exceed the&lt;br /&gt;maximum security level provided by the use of a 16 character, alphanumeric,&lt;br /&gt;case-sensitive PIN with BR/EDR Legacy Pairing, which often used a 4-digit&lt;br /&gt;PIN or a fixed PIN of commonly known values significantly limiting the security&lt;br /&gt;on the link.&lt;/em&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>