Skip to content

Krishna25Vrinsoft/cordova-plugin-secure-key-store

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cordova-plugin-secure-key-store

Cordova plugin for securely saving keys, passwords or strings on devices.

Installation

The plugin can be installed via the Cordova command line interface:

cordova plugin add cordova-plugin-secure-key-store

or via github

cordova plugin add https://github.com/pradeep1991singh/cordova-plugin-secure-key-store

Usage

This plugin will add three new methods to window scope, for saving sensitive data, retrieving saved data and for removing data.

  • For saving use cordova.plugins.SecureKeyStore.set
cordova.plugins.SecureKeyStore.set(function (res) {
  console.log(res); // res - string securely stored
}, function (error) {
  console.log(error);
}, "key", 'string to encrypt');
  • For retrieving use cordova.plugins.SecureKeyStore.get.
cordova.plugins.SecureKeyStore.get(function (res) {
  console.log(res); // res - string retrieved
}, function (error) {
  console.log(error);
}, "key");
  • And for removing cordova.plugins.SecureKeyStore.remove
cordova.plugins.SecureKeyStore.remove(function (res) {
  console.log(res); // res - string removed
}, function (error) {
  console.log(error);
}, "key");

License

ISC

Copyright (c) 2016 pradeep singh

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

About

Cordova plugin for securely saving keys, passwords or strings on devices.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Objective-C 72.2%
  • Java 26.4%
  • JavaScript 1.4%