简体   繁体   English

Android中的BLE是否可以使用自定义密钥进行加密

[英]Can BLE in Android use custom key for encryption

I have an Android device as Peripheral and a Cypress BLE chip as the Central. 我有一个Android设备作为Peripheral,有一个Cypress BLE芯片作为Central。 Is it possible to hardcode the 128 bit encryption key in both of them and use it for encryption? 是否可以对它们中的128位加密密钥进行硬编码并将其用于加密? If yes could you please tell me how can I do this? 如果可以,请告诉我该怎么做?

No, not for use by the built-in encryption + authentication in the BLE protocol. 否,不适用于BLE协议中的内置加密+身份验证。 You can however do your own encryption on the application level. 但是,您可以在应用程序级别上进行自己的加密。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM