Skip to content


Subversion checkout URL

You can clone with
Download ZIP
iOS keychain wrapper for Appcelerator Titanium
Branch: master
Pull request Compare This branch is 20 commits behind pegli:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.

ti_keychain module

The keychain module provides methods for securely storing sensitive data on iOS and Android.


  1. Download the module ZIP file from the downloads section and save it to either your project's root directory (the same directory as the Resources folder) or your Titanium SDK installation directory.
  2. Edit tiapp.xml and add the following line to the <modules> section, using the version number specified in the ZIP file name:
<module version="1.0" platform="android">com.obscure.keychain</module>
  1. Clean and rebuild your project.

Detailed instructions for installing modules can be found on the Appcelerator documentation site.

Usage Example

var keychain = require('com.obscure.keychain');

// NOTE passphrase is ignored on iOS
var keychainItem = keychain.createKeychainItem('mylogin', 'supersecretpassphrase');

// get values
alert('Your account name is ' + keychainItem.account);

// set values
keychainItem.account = 'pegli'; // username
keychainItem.valueData = 'correctbatteryhorsestaple'; // password
Something went wrong with that request. Please try again.