简体   繁体   English

flutter 中的 flutter_secure_storage 和 shared_prefrences 有什么区别? 为什么 flutter_secure_storage 更安全?

[英]What are the differences between flutter_secure_storage and shared_prefrences in flutter? Why is flutter_secure_storage more secure?

Actually, I've heard that for saving sensitive data, it's better to save it in flutter_secure_storage;其实我听说为了保存敏感数据,最好保存在flutter_secure_storage中; but I found nowhere about how flutter_secure_storage is more secure than shared_prefrences?但我没有发现 flutter_secure_storage 如何比 shared_prefrences 更安全? should I save the user token in flutter_secure_storage?我应该将用户令牌保存在 flutter_secure_storage 中吗?

flutter_secure_storage is another version of shared_prefrences. flutter_secure_storage 是 shared_prefrences 的另一个版本。 It uses both MODE_PRIVATE mode and AES encryption.它同时使用 MODE_PRIVATE 模式和 AES 加密。 That's why it's more secure.这就是为什么它更安全。

Please have a look this link 请看看这个链接

flutter_secure_storage is stored with aes encryption but there is better option available with same security but with high performance hive . flutter_secure_storage使用 aes 加密存储,但有更好的选择,具有相同的安全性但具有高性能hive here you can read more about it https://pub.dev/packages/hive#benchmark在这里你可以阅读更多关于它https://pub.dev/packages/hive#benchmark

暂无
暂无

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

相关问题 Flutter - 为什么/flutter_secure_storage 是安全的? - Flutter - Why/How is flutter_secure_storage secure? flutter_secure_storage 究竟是什么以及它是如何工作的? - What is flutter_secure_storage exactly and how it works? flutter_secure_storage中可以存储多少数据? - How much data can store in flutter_secure_storage? 在我的场景中,哪个包更好 flutter_secure_storage 或 getx ? - Which package is better flutter_secure_storage or getx in my scenario? 无法解析配置 ':flutter_secure_storage:classpath' 的所有工件 - Could not resolve all artifacts for configuration ':flutter_secure_storage:classpath' 使用 flutter_secure_storage 保存数据的列表文本......这可能吗? - Save List Texst of data using flutter_secure_storage ... is it possible? 在 flutter 中构建应用程序时,SharedPrefernces 和 Flutter_secure_storage 包有什么区别? 还是他们做同样的事情? - What is the difference between SharedPrefernces and Flutter_secure_storage packages when building an app in flutter? or do they do the same thing? Flutter 找不到所需的 package flutter_secure_storage/linux/CMakeLists.txt:14 - Flutter A required package was not found flutter_secure_storage/linux/CMakeLists.txt:14 如何实现使用flutter_secure_storage包读写数据的流程【with Provider包】 - How to implement a process that uses flutter_secure_storage package to read and write the data [with Provider package] 我将如何保持存储flutter_secure_storage的列表顺序? - How would I keep the order of the list stored flutter_secure_storage?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM