简体   繁体   English

钛-将信息安全存储在设备上

[英]Titanium - Securely store information on device

I would like to store token and other user information securely on the device. 我想将令牌和其他用户信息安全地存储在设备上。 From my understanding just using the regular preferences is not secure, and on iOS such data should be stored in KeyChain (android should still save in SharedPrefrences). 据我了解,仅使用常规首选项是不安全的,并且在iOS上,此类数据应存储在KeyChain中(Android应仍保存在SharedPrefrences中)。

Does Titanium have an API for storing information in iOS Keychain? Titanium是否有用于在iOS钥匙串中存储信息的API?

I also found OSS module on Marketplace that does that: https://marketplace.appcelerator.com/apps/4112?restoreSearch=true#!overview 我还在Marketplace上找到了可以做到这一点的OSS模块: https : //marketplace.appcelerator.com/apps/4112?restoreSearch=true#!overview

But if there's native platform support I rather use it. 但是,如果有本机平台支持,我宁愿使用它。

Titanium没有API可以在Keychain中存储数据,但是您可以使用以下模块: https : //github.com/pegli/ti_keychain/tree/master/mobile

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM