在 iOS MCSession 中,您可以使用以下方法 initWithPeer:securityIdentity:encryptionPreference 初始化该部分:
大多数在线教程作者都将 securityIdentity 设为 nil。但是,我想知道如果将 nil 留给真正的应用程序是否会造成任何损害(被黑客入侵)。如果是这样,如何为此生成一个 SecIdentityRef?
我发现了以下关于 iOS 中的安全性的文章/讨论,但仍然无法将 SecIdentityRef 与 MCSession 连接起来。
感谢您在我的问题上花费宝贵的时间,任何评论都会有所帮助。
在 iOS 上保护和加密数据:http: //code.tutsplus.com/tutorials/securing-and-encrypting-data-on-ios--mobile-21263
如何在 iPhone 钥匙串中建立 SecIdentityRef?(没有 .p12): 如何在 iPhone 钥匙串中建立 SecIdentityRef ?(没有 .p12)
Generate key pair on iphone and print to log as NSString: Generate key pair on iphone and print to log as NSString