菜鸟教程小白 发表于 2022-12-11 18:29:34

ios - 放置在钥匙串(keychain)中的数据是否应该手动加密?


                                            <p><p>抱歉这个是/否问题。</p>

<p>我们应该使用单独的算法加密密码,同时保存在钥匙串(keychain)中还是保留<code>keychain</code>默认的<code>cryptography</code>机制?</p>

<p><strong>如果我必须这样做,为什么?</strong></p>

<p>我正在考虑将用户名和密码存储在运行良好的钥匙串(keychain)中。 </p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>如果您想在本地存储用户名或电子邮件和密码,那么钥匙串(keychain)是最佳选择。看看 <a href="https://developer.apple.com/library/content/documentation/Security/Conceptual/keychainServConcepts/02concepts/concepts.html" rel="noreferrer noopener nofollow">KeyChain Documentation</a> . </p>

<p><strong><code>钥匙串(keychain)中的所有密码数据均使用三重数字加密标准 (3DES) 进行保护。</code></strong></p>

<p>您也可以引用其中一个答案<a href="https://stackoverflow.com/questions/6312871/what-encryption-algorithm-does-the-ios-keychain-use-to-protect-data" rel="noreferrer noopener nofollow">here</a> </p>

<p>如果您有一些 secret 数据,最好多提供一层安全保护。所以一切都取决于你。</p>

<p>您可以在插入<code>钥匙串(keychain)</code>之前对其进行加密。</p>

<p>您可以使用 <a href="https://github.com/RNCryptor/RNCryptor" rel="noreferrer noopener nofollow">AES</a>以及更多 iOS 中可用的加密技术。</p>

<p>从 <a href="https://developer.apple.com/library/content/samplecode/GenericKeychain/Introduction/Intro.html#//apple_ref/doc/uid/DTS40007797" rel="noreferrer noopener nofollow">Here</a> 下载 KeyChain <strong><code>Apple 官方示例代码</code></strong> </p></p>
                                   
                                                <p style="font-size: 20px;">关于ios - 放置在钥匙串(keychain)中的数据是否应该手动加密?,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/41461006/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/41461006/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - 放置在钥匙串(keychain)中的数据是否应该手动加密?