android - How i can store my password in Titanium? -
how can store password (string) in titanium application? titanium have analog android secret key, example?
(i need android)
thanks!
ios (and mac) has mechanism storing passwords , things securely called keychain. titanium, there module supports api called securely.
once have securely installed, simple matter save password @ point:
var securely = require('bencoding.securely'); //you can provide optional identifier, if none provided securely uses bundle id // wraps keychain functions var secureproperties = securely.createproperties({ identifier:"foo", accessgroup:"bar" }); // add properties secureproperties.setstring('password', the_password_var); // var mypassword = secureproperties.getstring("password");
Comments
Post a Comment