A phonegap 3.x plugin to store and retrieve sercure data such as password, credit-card data into keychain of ios plateform.
You may use phonegap CLI as follows:
➜ phonegap local plugin add https://github.com/javabrown/vault.git [phonegap] adding the plugin: https://github.com/javabrown/vault.git [phonegap] successfully added the plugin
##iOS keychain internal design
The code below can be placed into script tag.
document.addEventListener('deviceready', onDeviceReady);
function onDeviceReady() {
window.vault = cordova.require("cordova.plugin.vault.vault");
}
function store(key, value) {
vault.set(key, value, win, fail);
}
function retrieve(key) {
keychain.get(win, fail);
}
function win(status) {
alert('Message: ' + status);
}
function fail(status) {
alert('Error: ' + status);
}