[英]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.