Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

安全 security #34

Closed
mlf2020 opened this issue Sep 26, 2018 · 2 comments
Closed

安全 security #34

mlf2020 opened this issue Sep 26, 2018 · 2 comments

Comments

@mlf2020
Copy link

mlf2020 commented Sep 26, 2018

可以用MMKV保存一些个人隐私的数据吗? 比如邮箱、密码之类的 (类似KeyChian)

@lingol
Copy link
Collaborator

lingol commented Sep 26, 2018

Yes. You can store sensitive date in MMKV by using encryption.
iOS:
+ (instancetype)mmkvWithID:(NSString *)mmapID cryptKey:(NSData *)cryptKey
Android:
public static MMKV mmkvWithID(String mmapID, int mode, String cryptKey)

@mlf2020
Copy link
Author

mlf2020 commented Sep 26, 2018

ok, thank you!

@lingol lingol closed this as completed Sep 26, 2018
@sven-brobonds sven-brobonds mentioned this issue Jul 21, 2020
This was referenced Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants