简体   繁体   English

Flutter - 获取IOS的外部存储路径以安全存储认证文件

[英]Flutter - Get external storage path for IOS to store authentication files securely

I am looking for a solution to get the external path for the IOS platform to store some authentication files which should not be deleted even though my application is being uninstalled.我正在寻找一种解决方案来获取 IOS 平台的外部路径以存储一些身份验证文件,即使我的应用程序正在卸载,这些文件也不应该被删除。 Is there any way to achieve this with the solution I am looking for or any other technique could be used.有什么方法可以使用我正在寻找的解决方案或任何其他技术来实现这一点。 All suggestions are welcomed, Thanks for help.欢迎所有建议,感谢您的帮助。

Storing Authentication Files Securely安全地存储身份验证文件

For storing files, if you were to store authentication files then you'd have to do so in a secure manner.对于存储文件,如果您要存储身份验证文件,则必须以安全的方式进行。 ie KeyChain on iOS and KeyStore on Android.即 iOS 上的KeyChain和 Android 上的KeyStore flutter_secure_storage pub encapsulates this for you. flutter_secure_storage pub 为您封装了这个。

Persisting information and surviving app uninstallation持久信息和幸存的应用程序卸载

As per your second point, your stored authentication files cannot survive uninstallation.根据您的第二点,您存储的身份验证文件无法在卸载后继续存在。 You have to use DeviceCheck for iOS and SafetyNet for Android.您必须使用 iOS 的DeviceCheck和 Android 的SafetyNet Which offers storing bare minimum information (two bits on iOS!) and associating them with the device.它提供了存储最低限度的信息(iOS 上的两位!)并将它们与设备相关联。

KeyChain may support this for now, but this is not guaranteed to be future-proof. KeyChain 可能暂时支持这一点,但这不能保证是面向未来的。 KeyStore certainly does not support this . KeyStore 肯定不支持这个

You can also check out the following articles for more insights:您还可以查看以下文章以获取更多见解:

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

相关问题 如何从 Flutter 的外部存储中获取文件? - How to get files from external storage in Flutter? Flutter:在外部存储路径上创建目录 - 路径提供程序 getExternalStorageDirectory() - Flutter : Create directory on external storage path - path provider getExternalStorageDirectory() 获取内部和外部存储文件路径 - Get internal as well as external storage file path 从Android中的外部存储获取文件路径 - Get path of file from External Storage in Android Android 6上的Phonegap-如何获取外部存储路径 - Phonegap On Android 6 - How to get external storage path 在 android 6.0 中获取外部存储路径? - Get external storage path in android 6.0? 在平板电脑的Android应用程序中获取外部存储路径 - Get external storage path in android app for tablet 在Android中使用绝对路径获取内部和外部存储中所有文件(每个文件)的列表 - Get list of all files (every file) in both internal and external storage with absolute path in Android 如何在颤振中显示来自外部存储路径的图像? - How to display images from a external storage path in flutter? 如何将文件存储在内置的外部存储中 - How to get files stored in inbuilt external storage
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM