简体   繁体   English

flutter_secure_storage 究竟是什么以及它是如何工作的?

[英]What is flutter_secure_storage exactly and how it works?

i work on authentification for my app now.我现在正在为我的应用程序进行身份验证。 I have heard good things about flutter_secure_storage but i would like to know how it works exactly because i am not sure.我听说过关于 flutter_secure_storage 的好消息,但我想知道它是如何工作的,因为我不确定。 I have read it stores data in shared préférences but all data are crypted which would be great for what i need to do.我读过它在共享偏好中存储数据,但所有数据都是加密的,这对我需要做的事情非常有用。 Is it true ?这是真的吗? And is it really secure ?它真的安全吗? Can i store the username and password with it with security ?我可以安全地存储用户名和密码吗? Can we imagine a user log in my app and i store all with this plugin flutter_secure_storage (example : i can store the email or the id of the member crypted so when the user go back on the app if i find the value crypted in shared préférences i redirect him to member page and so i know the member's id in the app when i need it我们可以想象用户登录我的应用程序并使用此插件 flutter_secure_storage 存储所有内容(例如:我可以存储加密的电子邮件或成员的 ID,因此当用户返回应用程序时,如果我发现共享偏好中加密的值我将他重定向到会员页面,因此我在需要时知道应用程序中的会员 ID

So i decided to user flutter_secure_storage and i do ot like that :所以我决定使用 flutter_secure_storage 并且我不喜欢这样:

final storage = new FlutterSecureStorage();

// Read value

mail = await storage.read(key: "e");
pass = await storage.read(key: "p");

And for write the keys when signup or login i do it :为了在注册或登录时编写密钥,我这样做:

final storage = new FlutterSecureStorage();
await storage.write(key: "e", value: email);
await storage.write(key: "p", value: password);

It seems very simple and it works but i Don't understand how it can be crypted.它看起来很简单而且可以工作,但我不明白它是如何加密的。 From my side i crypt Nothing i set the email and password How it works exactly ?从我这边我加密什么我没有设置电子邮件和密码它是如何工作的?

暂无
暂无

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

相关问题 Flutter - 为什么/flutter_secure_storage 是安全的? - Flutter - Why/How is flutter_secure_storage secure? 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? flutter_secure_storage中可以存储多少数据? - How much data can store in flutter_secure_storage? 如何实现使用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? 无法解析配置 ':flutter_secure_storage:classpath' 的所有工件 - Could not resolve all artifacts for configuration ':flutter_secure_storage:classpath' 在我的场景中,哪个包更好 flutter_secure_storage 或 getx ? - Which package is better flutter_secure_storage or getx in my scenario? 使用 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
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM