title: How to encrypt data using BLE connection using Bluez5.50
body: <p>I'm working on a C++ project that deals with data transmission. My system is composed of two different devices, that have to exchange sensitive data in a trusted mode. To do this I downloaded and set up the last bluez library (v5.50) on my Raspberry Pi.</p>
  
  <ol>
  <li>Is there any possibility to enable data encryption using the bluez API?</li>
  </ol>
  
  <p>Googling around the possibility to use the BLE encryption mechanism I found discordant opinions. Someone suggests using it while others one discourage it in favor of application-level encryption exploiting, for instance, the Cripto++ library.</p>
  
  <ol start="2">
  <li>Which is the best solution?</li>
  </ol>
  
  <p>Thanks</p>