gpt4 book ai didi

iphone - PBKDF2 的 CommonCrypto 替代品

转载 作者:行者123 更新时间:2023-12-01 19:23:26 28 4
gpt4 key购买 nike

由于 Apple 已弃用在 iOS 中使用 openSSL,因此我需要在其中一个 iOS 安全框架中替代 PBKDF2。我试图搜索 CommonCrypto,但没有成功。

是否有苹果推荐的 PBKDF2 的公平替代品?
即iOS中的 key 派生功能(基于密码)(由Apple实现)?

附言我知道 PBKDF2 using CommonCrypto on iOS ,我不想使用 openSSL,因为 Apple 不推荐它,请参阅 Why is Apple Deprecating OpenSSL in MacOS 10.7 (Lion)?

最佳答案

PBKDF2 是标准算法,是推荐的 PBKDF 算法。它不是“OpenSSL”,也没有被弃用(鼓励)。您应该使用 CCKeyDerivationPBKDF()在 iOS 5+ 和 OS X 10.7+ 中来自 CommonCrypto。如果您想将此版本的 CommonCrypto 向后移植到旧平台,请参阅 How to compile and use CommonCrypto for iOS 4? .

关于iphone - PBKDF2 的 CommonCrypto 替代品,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9110282/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com