[英]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.
这就是为什么它更安全。
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.