{"_id":"@abishekilango-wayfwd/capacitor-secure-storage-plugin","_rev":"4-7968177b2dd5d2d710031013efca745a","name":"@abishekilango-wayfwd/capacitor-secure-storage-plugin","dist-tags":{"latest":"0.6.6"},"versions":{"0.6.3":{"name":"@abishekilango-wayfwd/capacitor-secure-storage-plugin","version":"0.6.3","description":"Securely store secrets such as usernames, passwords, tokens, certificates or other sensitive information (strings) on iOS & Android","main":"dist/esm/index.js","types":"dist/esm/index.d.ts","scripts":{"build":"npm run clean && tsc","clean":"rimraf ./dist","watch":"tsc --watch","prepublishOnly":"npm run build"},"author":{"name":"martinkasa"},"license":"MIT","dependencies":{"@capacitor/core":"^3.0.0"},"devDependencies":{"rimraf":"^3.0.0","typescript":"^3.2.4","@capacitor/ios":"^3.0.0","@capacitor/android":"^3.0.0"},"keywords":["capacitor","plugin","native"],"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"homepage":"https://github.com/abishekilango-wayfwd/capacitor-secure-storage-plugin#readme","repository":{"type":"git","url":"git+https://github.com/abishekilango-wayfwd/capacitor-secure-storage-plugin.git"},"bugs":{"url":"https://github.com/abishekilango-wayfwd/capacitor-secure-storage-plugin.git/issues"},"gitHead":"89beb68c54d5a06db3ac61ff1abea6d80eebd882","_id":"@abishekilango-wayfwd/capacitor-secure-storage-plugin@0.6.3","_nodeVersion":"14.16.0","_npmVersion":"6.14.3","dist":{"integrity":"sha512-QLbZNcsGmU6ijE2RlTX7/ELlyT+nsMW8tipcK1UqozcGNbPS+wGPUAFckUqf9jJFxAAjoEEQCpwbi6w+jJ9qOA==","shasum":"e7842f73f0fb4e688c689e018739dbc93b4f3633","tarball":"https://registry.npmjs.org/@abishekilango-wayfwd/capacitor-secure-storage-plugin/-/capacitor-secure-storage-plugin-0.6.3.tgz","fileCount":155,"unpackedSize":460970,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiPGhfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo34w//Z9WX+Cb38LDEVcM77HcD0LmnuaTQnRUBMtyqS197Lsi1zoN/\r\nnHFDbzbhe3rfZUJXSbDiH8gEKJTCWDruTpaiheAyBt6CDjrSp349U6DAT/Dq\r\n3gnjEwferSvF9ACdstoyiNQVXXlFCQtTTTDHLbCgdu6AKuVWYSx2b4cJgkO+\r\nor2tLGKctDqMpzMYn5eYCrSjBkxVfD/pHWUX+d+rUGv8Z/uUpyWWGa70Iws8\r\nnszFmN7D0sy6DGmgcUNV7DvEhMUzkY44MQ03o9YBSRsCG7mADaGgLppt1v+s\r\n35GbSyNc9U7UfSGfGKOpsWV/9bfjPPAx16WYnjTDnFzi/SLmNTJElQEpLFgD\r\nvvAPePEn5ObBm9G1ff5dx8Fj+fjapkRL1HX4GZX8KW2//GSyA8ueGxBVsENE\r\n7ulkWmLh2/zNdJfznB1V4wM81uVFgzJYT/BVH1edt1tslXlfhY8iAWptvXYo\r\nBLtnAwHYqoiuWzOjwYdQjwbJ7ty5KTgeO+QFn4fxcLiz+FodUvwtoPDX+M6W\r\nUhE5Bexe2N4kLufw+J6LncSaWvaJMqSdBXivrXj+BOw1K4Lya2LAwdpg8xih\r\nSsjB9Uo0r9LPQ4fmgGOzx0LI71/ZEaGbeY5x9t8XJaylE4RP5gLtKHbsLWri\r\nStMc7X7qftt45Nvu6ATCRbkuRALEXeyonxs=\r\n=hzNh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGzH6vnXdqUPQDvc051IzBrzv8JCFnEkJwFnUwG+3DK2AiEA9Qb2+QzJx07ZgwPE5xXZ1WtNZZCGFd4K9QSIEW99gds="}]},"_npmUser":{"name":"abishekilango-wayfwd","email":"abishek.ilango@wayforward.io"},"directories":{},"maintainers":[{"name":"abishekilango-wayfwd","email":"abishek.ilango@wayforward.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capacitor-secure-storage-plugin_0.6.3_1648126046967_0.7876727254521974"},"_hasShrinkwrap":false},"0.6.4":{"name":"@abishekilango-wayfwd/capacitor-secure-storage-plugin","version":"0.6.4","description":"Securely store secrets such as usernames, passwords, tokens, certificates or other sensitive information (strings) on iOS & Android","main":"dist/esm/index.js","types":"dist/esm/index.d.ts","scripts":{"build":"npm run clean && tsc","clean":"rimraf ./dist","watch":"tsc --watch","prepublishOnly":"npm run build"},"author":{"name":"martinkasa"},"license":"MIT","dependencies":{"@capacitor/core":"^3.0.0"},"devDependencies":{"rimraf":"^3.0.0","typescript":"^3.2.4","@capacitor/ios":"^3.0.0","@capacitor/android":"^3.0.0"},"keywords":["capacitor","plugin","native"],"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"homepage":"https://github.com/abishekilango-wayfwd/capacitor-secure-storage-plugin#readme","repository":{"type":"git","url":"git+https://github.com/abishekilango-wayfwd/capacitor-secure-storage-plugin.git"},"bugs":{"url":"https://github.com/abishekilango-wayfwd/capacitor-secure-storage-plugin.git/issues"},"gitHead":"b6fc92b8983c951e546e3744f37874f4036017ff","_id":"@abishekilango-wayfwd/capacitor-secure-storage-plugin@0.6.4","_nodeVersion":"14.16.0","_npmVersion":"6.14.3","dist":{"integrity":"sha512-SGYfG8WJE5M3XxGELtkJ748ZmkFFrzYvNAQIyCB5CJRC7mVEy00CFYPPGp3S3TRl+ZHUZ6DeXUcFsrtkzp60CQ==","shasum":"960cf874aee03bf90829b65439d5926271736ddb","tarball":"https://registry.npmjs.org/@abishekilango-wayfwd/capacitor-secure-storage-plugin/-/capacitor-secure-storage-plugin-0.6.4.tgz","fileCount":154,"unpackedSize":460305,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiPGvfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrnQhAAiKCqC8xVrmdu1y2d0pgHQfFsjM3MxzyNcamUO/lTAfVa/nA+\r\n5wjUFOIAevwTYD5cJ6OULLCuRlUfHTUsCYu8/e/GOM6dF0EUgjqwIoTesvst\r\n9g0EGo+w8BVqCLTmCs87FOHCoqVsu1Ca772YLs+bHvWEvT7b/wZL8mrO30YW\r\nchGJZOnoP5wbg9ykjN59aZgTWNjmzwAplge46Xbr4pf2wrernqHbv3Ee0FFP\r\naK0of0siAep9itxn4v4QCU3yj8uIbrSl4a0DSc8CJ/+b4ubhjjyFmVIJJl4R\r\nELfZ6Rgyqg1am8i9PX7dOZDDaZEUcp/go8WlQ1d18//hD3xdktZvPVI5V7OI\r\nzk1iEYma/ae+aP3+ptQ1OYnXeWkxCdrBngNUhPwBYbW3NIqAN8jq9LN0lbys\r\njIrrn8QJRDxjbi35qmQ6HYTntgwwo/kpHe6pl6ffnyORhZEcMfBdjEBT7AJ6\r\n9AaE3mJOnTiAzp4R77XJCHYEgYnk2j++TDvt4t9qW66yYfriNKFQhsjN688i\r\nByqwZvAhwG10tWy7wE42qTx0qh6Ia3b8nyLNK4//hcpEH8fkqgurqr/sTWWu\r\nWzGFv+uTDidzqFCOPUe46pqNrTPdIAHjurxS9479hpG5NSIko8PGTLVck1bB\r\nAOBypPCZ6pppy778rfmMZd14CblMMedgLNA=\r\n=BcEt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHFLdxzfqE4SvCLOxMlZdTmUs/6J1bYVPj5NvINnoiXSAiBcktwnKYe/gwerIVQLMJL8/tOgCfEb7MoWGmh11pdDwQ=="}]},"_npmUser":{"name":"abishekilango-wayfwd","email":"abishek.ilango@wayforward.io"},"directories":{},"maintainers":[{"name":"abishekilango-wayfwd","email":"abishek.ilango@wayforward.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capacitor-secure-storage-plugin_0.6.4_1648126943328_0.4464643643402828"},"_hasShrinkwrap":false},"0.6.5":{"name":"@abishekilango-wayfwd/capacitor-secure-storage-plugin","version":"0.6.5","description":"Securely store secrets such as usernames, passwords, tokens, certificates or other sensitive information (strings) on iOS & Android","main":"dist/esm/index.js","types":"dist/esm/index.d.ts","scripts":{"build":"npm run clean && tsc","clean":"rimraf ./dist","watch":"tsc --watch","prepublishOnly":"npm run build"},"author":{"name":"martinkasa"},"license":"MIT","dependencies":{"@capacitor/core":"^3.0.0"},"devDependencies":{"rimraf":"^3.0.0","typescript":"^3.2.4","@capacitor/ios":"^3.0.0","@capacitor/android":"^3.0.0"},"keywords":["capacitor","plugin","native"],"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"homepage":"https://github.com/abishekilango-wayfwd/capacitor-secure-storage-plugin#readme","repository":{"type":"git","url":"git+https://github.com/abishekilango-wayfwd/capacitor-secure-storage-plugin.git"},"bugs":{"url":"https://github.com/abishekilango-wayfwd/capacitor-secure-storage-plugin.git/issues"},"gitHead":"464368db4dd2037ec7d25f81910deb35f38dcb44","_id":"@abishekilango-wayfwd/capacitor-secure-storage-plugin@0.6.5","_nodeVersion":"14.16.0","_npmVersion":"6.14.3","dist":{"integrity":"sha512-RVs+B1W8bl+UkhrqDvvgXyzI0P3Q6B1RkuclHPvgCaDMycQ1UNqTK7MwNAx/qbAtujWAXHrETsCY+My4Fe3l7A==","shasum":"601c503458b50a608fdc68ec2f75f55c6e6afd66","tarball":"https://registry.npmjs.org/@abishekilango-wayfwd/capacitor-secure-storage-plugin/-/capacitor-secure-storage-plugin-0.6.5.tgz","fileCount":155,"unpackedSize":461008,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiPGzSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmppSRAAkHNy7hsOZ4lJy/kKBiX0Vj5bho26ei1aGOeUzhddWQ+/neDV\r\nrtbWlugxiofUf679XlrIlO3HBYevmHcFtxzQFMPlWtsYj8w1U9kEQlTFjzE9\r\n10/aK4INFfeUj8H4OtJafbMe6Gm96jzjyUUpQxaxDf273n9Dad3rjST2q2Dq\r\n8kQ9yVfEmqVeCMTX32Dg1L7Wryi+cCfwBrRxsXQ6SBAU7yMGY/g2ozchpE+A\r\nKvOnNjglz33k4FUJ4oH0jAY+aWuELHSzGu37ykG1kGVLS62FYIvIlKx7cl70\r\nSXcUvWCRqyuH6mL/JCIYfzHmwrxlOXdnnP48jMMBT28bl5dwmLhKb51UX9m8\r\nzFsVcKExUI89c2uu/CbCbKiCizbE60w6HxL/XyVFswnor2liP34AdXCeHvZS\r\noFjkTq8sNITYjDGwyq8+Vss5JTTf6ectYCMo2jSJUynA7EQrvShBKqmjXfkY\r\nozkzDWs+e0LXp8aOa/UqGpk2OMnHn56+2rBqJnwGRnqEADmTb7uh6/HyIWNt\r\nO+3Xv2fIfn8Ycqu0TbdI0Y2utvfxGjscMdxxN/T/A8+BSBzdSorlh6vu04sB\r\nt296Uu3Pt2DrNvDlaYicIdczV86lEjXBdsSFzlcJ0uXDWEFHcxz8B6Fs3AqE\r\nUqW2RsHJm2ynJc1iOJ5FEX7vJf7Z1Gs9kdc=\r\n=dL3O\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEQ504Q7z9egpLiuibQ+p2h7fkbjpUCW7bkF4IZOUc7PAiEA9RXQyq6ZFnD9iUAIkPEKOw/LmlvdTPIA9drDLT2kJLA="}]},"_npmUser":{"name":"abishekilango-wayfwd","email":"abishek.ilango@wayforward.io"},"directories":{},"maintainers":[{"name":"abishekilango-wayfwd","email":"abishek.ilango@wayforward.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capacitor-secure-storage-plugin_0.6.5_1648127186476_0.44122052096166886"},"_hasShrinkwrap":false},"0.6.6":{"name":"@abishekilango-wayfwd/capacitor-secure-storage-plugin","version":"0.6.6","description":"Securely store secrets such as usernames, passwords, tokens, certificates or other sensitive information (strings) on iOS & Android","main":"dist/esm/index.js","types":"dist/esm/index.d.ts","scripts":{"build":"npm run clean && tsc","clean":"rimraf ./dist","watch":"tsc --watch","prepublishOnly":"npm run build"},"author":{"name":"martinkasa"},"license":"MIT","dependencies":{"@capacitor/core":"^3.0.0"},"devDependencies":{"rimraf":"^3.0.0","typescript":"^3.2.4","@capacitor/ios":"^3.0.0","@capacitor/android":"^3.0.0"},"keywords":["capacitor","plugin","native"],"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"homepage":"https://github.com/abishekilango-wayfwd/capacitor-secure-storage-plugin#readme","repository":{"type":"git","url":"git+https://github.com/abishekilango-wayfwd/capacitor-secure-storage-plugin.git"},"bugs":{"url":"https://github.com/abishekilango-wayfwd/capacitor-secure-storage-plugin.git/issues"},"gitHead":"e9580a0ecf534a578c71694fb800cd80f8b29ea3","_id":"@abishekilango-wayfwd/capacitor-secure-storage-plugin@0.6.6","_nodeVersion":"14.16.0","_npmVersion":"6.14.3","dist":{"integrity":"sha512-js1U080jo1ZFKC62fRrpvn/X5dj3C7iY97WWfqXQ1krmmEbXuDxJDWXsZyPOkti4fv5uOUhHU6LUYx7u8t/Syw==","shasum":"4ca0eb5b9b12fac36d7d6adecae7c693eeb6b78a","tarball":"https://registry.npmjs.org/@abishekilango-wayfwd/capacitor-secure-storage-plugin/-/capacitor-secure-storage-plugin-0.6.6.tgz","fileCount":158,"unpackedSize":474414,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiPL0sACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqa1A/9Hgk2Rnd8GG86uS6m179YnlRhEpwDpT9rBKe4ZyMJQcd6BrAE\r\nsidD4g97U3YakhqlipyFrtN6JfMuo9yX20i5xdpapJNwCcxSIAVdl4pvBT1D\r\n25ATLluapyH0Kc8BEOdCgDuz2ynFjYJVG0p4IhJPPK5CWTyhbuXgcQPxhZDy\r\nP2QXwviYZu8kjTe3D67DVY4UWBILy3xw8V+d7n9F71PxkuGPGn26LU/Y9t+E\r\nSoc9sihXRGMllpisxQo7fWN8+HhYokNzh4pErs098Xu7ENgmuN3ffcltaZTz\r\nY+YKamKnH7PC+Ni6t3jf71tOwxxTx/NJia2EFPX6B5vOqqK4e7njuZYXLRDS\r\n68FCLzHE0kuF3IZqUULKtyH9+pHf8+WZvCEImhAWMK8NYutLm9XcSicrQj0i\r\nUGp2gMVOXo8OD0AxV285wsHzFthzcNl6ac6ZVwVyDFWKgRB7sxBiEExrqWMz\r\nkhq7nWZf9OJoeAov8eS9DFScFwzTmnGsq0ih3WNwRh+z9blzxaPBGBS/JyK0\r\nmlJiBtOPhQ6qKjcp2LXGfr5vCNhXJmpcEQDcFdJpcVBmQl/4WLm3/WkrTdzF\r\n0vDF9kraXCrqJLMAxUgrczVxABxms3t98ilmzVyUTuTRG/us9h5iyhAIHqUC\r\nwgdm3O/M/As3ICzgrtR+FxVBEfKPyAa68rc=\r\n=XmJH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCXXoT7w7167Zair+45fBVd6PAP5rzgonyhBuP7cCWx7wIhALKgRkgocUeXQ01QUEjtnANfukGNpEQ/kypftdNZsv9/"}]},"_npmUser":{"name":"abishekilango-wayfwd","email":"abishek.ilango@wayforward.io"},"directories":{},"maintainers":[{"name":"abishekilango-wayfwd","email":"abishek.ilango@wayforward.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capacitor-secure-storage-plugin_0.6.6_1648147756353_0.70878293146925"},"_hasShrinkwrap":false}},"time":{"created":"2022-03-24T12:47:26.890Z","0.6.3":"2022-03-24T12:47:27.124Z","modified":"2022-04-04T10:59:40.499Z","0.6.4":"2022-03-24T13:02:23.488Z","0.6.5":"2022-03-24T13:06:26.650Z","0.6.6":"2022-03-24T18:49:16.554Z"},"maintainers":[{"name":"abishekilango-wayfwd","email":"abishek.ilango@wayforward.io"}],"description":"Securely store secrets such as usernames, passwords, tokens, certificates or other sensitive information (strings) on iOS & Android","homepage":"https://github.com/abishekilango-wayfwd/capacitor-secure-storage-plugin#readme","keywords":["capacitor","plugin","native"],"repository":{"type":"git","url":"git+https://github.com/abishekilango-wayfwd/capacitor-secure-storage-plugin.git"},"author":{"name":"martinkasa"},"bugs":{"url":"https://github.com/abishekilango-wayfwd/capacitor-secure-storage-plugin.git/issues"},"license":"MIT","readme":"# capacitor-secure-storage-plugin\n\nCapacitor plugin for storing string values securly on iOS and Android.\n\n## How to install\nFor Capacitor v3\n\n```\nnpm install @abishekilango-wayfwd/capacitor-secure-storage-plugin\n```\n\n\nFor Capacitor v2 - install with fixed version 0.5.1\n\n```\nnpm install @abishekilango-wayfwd/capacitor-secure-storage-plugin@0.5.1\n```\n\n\n## Usage\n\nFor Capacitor v3\n\nIn a component where you want to use this plugin add to or modify imports:\n\n```\nimport { SecureStoragePlugin } from '@abishekilango-wayfwd/capacitor-secure-storage-plugin';\n```\n\nFor Capacitor v2\n\nIn a component where you want to use this plugin add to or modify imports:\n\n```\nimport '@abishekilango-wayfwd/capacitor-secure-storage-plugin';\nimport { Plugins } from '@capacitor/core';\n\nconst { SecureStoragePlugin } = Plugins;\n```\n\nFirst line is needed because of web part of the plugin (current behavior of Capacitor, this may change in future releases).\n\n### Android\n\nIn Android you have to register plugins manually in MainActivity class of your app.\n\nhttps://capacitor.ionicframework.com/docs/plugins/android/#export-to-capacitor\n\n```\nimport com.whitestein.securestorage.SecureStoragePlugin;\n\n...\n\npublic class MainActivity extends BridgeActivity {\n  @Override\n  public void onCreate(Bundle savedInstanceState) {\n    super.onCreate(savedInstanceState);\n\n    // Initializes the Bridge\n    this.init(savedInstanceState, new ArrayList<Class<? extends Plugin>>() {{\n      // Additional plugins you've installed go here\n      // Ex: add(TotallyAwesomePlugin.class);\n      add(SecureStoragePlugin.class);\n    }});\n  }\n}\n```\n\n## Methods\n\n- **get**(options: { key: string }): Promise<{ value: string }>\n  - if item with specified key does not exist, throws an Error\n\n* **keys**(): Promise<{ value: string[] }>\n* **set**(options: { key: string; value: string }): Promise<{ value: boolean }>\n* **remove**(options: { key: string }): Promise<{ value: boolean }>\n* **clear**(): Promise<{ value: boolean }>\n  - set, remove and clear return true in case of success and false in case of error\n\n- **getPlatform**(): Promise<{ value: string }>\n  - returns which implementation is used - one of 'web', 'ios' or 'android'\n\n## Example\n\n```\nconst key = 'username';\nconst value = 'hellokitty2';\n\nSecureStoragePlugin.set({ key, value })\n  .then(success => console.log(success))\n```\n\n```\nconst key = 'username';\nSecureStoragePlugin.get({ key })\n  .then(value => {\n    console.log(value);\n  })\n  .catch(error => {\n    console.log('Item with specified key does not exist.');\n  });\n```\n\n```\nasync getUsername(key: string) {\n  return await SecureStoragePlugin.get({ key });\n}\n```\n\n## Platform specific information\n\n### iOS\n\nThis plugin uses SwiftKeychainWrapper under the hood for iOS.\n\n##### Warning\n\nUp to version v0.4.0 there was standard keychain used. Since v0.5.0 there is separate keychain wrapper, so keys() method returns only keys set in v0.5.0 or higher version.\n\n### Android\n\nOn Android it is implemented by AndroidKeyStore and SharedPreferences. Source: [Apriorit](https://www.apriorit.com/dev-blog/432-using-androidkeystore)\n\n##### Warning\n\nFor Android API < 18 values are stored as simple base64 encoded strings.\n\n### Web\n\nThere is no secure storage in browser (not because it is not implemented by this plugin, but it does not exist at all). Values are stored in LocalStorage, but they are at least base64 encoded. Plugin adds 'cap*sec*' prefix to keys to avoid conflicts with other data stored in LocalStorage.\n","readmeFilename":"README.md"}