title: BLE Pairing Security
body: <p>I am new to BLE technology outside of using it for Arduino(RFduino). I'm trying to make it so that every phone that can see the device cannot pair to the RFduino. What I'm confused about is I know BLE has security measures but how do I go about implementing these.</p>
  
  <p>Looking at this question it looks like one can use the MAC addr for security? <a href="https://stackoverflow.com/questions/22712632/pair-ble-device-with-android">https://stackoverflow.com/questions/22712632/pair-ble-device-with-android</a> So I guess what I should do is have the user enter the correct MAC addr for the device and if it doesn't match they can't connect?</p>
  
  <p>What I really dont understand is how to add a pairing private/public key to the whole communication which I assume is the best practice way to do this? Any help would be appreciated.</p>