[英]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.欢迎所有建议,感谢您的帮助。
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 为您封装了这个。
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.