From 683ee47257ff7eccfa8a9c43a062ffe1c86c60b9 Mon Sep 17 00:00:00 2001 From: pradeep singh Date: Fri, 17 Feb 2017 22:05:29 +0530 Subject: [PATCH] upated readme file and fixed plugin version and trying to fix untar issue on npm too --- README.md | 8 +++++--- package.json | 2 +- plugin.xml | 9 +++------ 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 4a45f22..c62a9c3 100644 --- a/README.md +++ b/README.md @@ -17,9 +17,9 @@ cordova plugin add https://github.com/pradeep1991singh/cordova-plugin-secure-key ## Usage -- This plugin will add two new methods to window scope, one is for encrypting and other for decrypting keys. +This plugin will add three new methods to window scope, for saving sensitive data, retrieving saved data and for removing data. -- For saving string `cordova.plugins.SecureKeyStore.set` and for retrieving `cordova.plugins.SecureKeyStore.get`. +- For saving use `cordova.plugins.SecureKeyStore.set` ```js cordova.plugins.SecureKeyStore.set(function (res) { @@ -29,6 +29,8 @@ cordova.plugins.SecureKeyStore.set(function (res) { }, "key", 'string to encrypt'); ``` +- For retrieving use `cordova.plugins.SecureKeyStore.get`. + ```js cordova.plugins.SecureKeyStore.get(function (res) { console.log(res); // res - string retrieved @@ -36,7 +38,7 @@ cordova.plugins.SecureKeyStore.get(function (res) { console.log(error); }, "key"); ``` -- Apart from above there is one more method for removing saved key +- And for removing `cordova.plugins.SecureKeyStore.remove` ```js cordova.plugins.SecureKeyStore.remove(function (res) { diff --git a/package.json b/package.json index bc2e3c9..68bd541 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cordova-plugin-secure-key-store", - "version": "1.4.3", + "version": "1.4.4", "description": "Cordova plugin for securely saving keys, passwords or strings on devices.", "cordova": { "id": "cordova-plugin-secure-key-store", diff --git a/plugin.xml b/plugin.xml index bd34bab..f960a62 100644 --- a/plugin.xml +++ b/plugin.xml @@ -1,11 +1,11 @@ SecureKeyStore - pradeep1991singh + pradeep singh Cordova plugin for securely saving keys, passwords or strings on devices. @@ -13,10 +13,7 @@ ISC - - ecosystem:cordova, ecosystem:phonegap, mobile, android, ios, android-keystore, - ios-keychain, sensitive-data-security, public-private-key, encryption-decryption - + ecosystem:cordova, ecosystem:phonegap, mobile, android, ios, android-keystore, ios-keychain, sensitive-data-security, public-private-key, encryption-decryption