{"_id":"@auvo/tauri-plugin-crypto-hw-api","name":"@auvo/tauri-plugin-crypto-hw-api","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@auvo/tauri-plugin-crypto-hw-api","version":"0.1.0","author":{"name":"SoSweetHam","email":"soham@auvo.io"},"description":"Android/iOS StrongBox/Secure Enclave Bindings+Wrapper for Tauri.","type":"module","types":"./dist-js/index.d.ts","main":"./dist-js/index.cjs","module":"./dist-js/index.js","license":"MIT","exports":{"types":"./dist-js/index.d.ts","import":"./dist-js/index.js","require":"./dist-js/index.cjs"},"repository":{"type":"git","url":"git+https://github.com/auvoid/tauri-plugin-crypto-hw.git"},"keywords":["tauri","plugin","crypto","tpm","hsm","secure enclave","strongbox","android","ios","hardware"],"dependencies":{"@tauri-apps/api":">=2.0.0-beta.6"},"devDependencies":{"@biomejs/biome":"^1.9.4","@rollup/plugin-typescript":"^11.1.6","rollup":"^4.9.6","tslib":"^2.6.2","typescript":"^5.3.3"},"scripts":{"build":"rollup -c","pretest":"pnpm build","lint":"npx @biomejs/biome lint --write ./guest-js","check-lint":"npx @biomejs/biome lint ./guest-js","format":"npx @biomejs/biome format --write ./guest-js","check-format":"npx @biomejs/biome format ./guest-js","check":"npx @biomejs/biome check --write ./guest-js","check-types":"tsc --noEmit"},"_id":"@auvo/tauri-plugin-crypto-hw-api@0.1.0","bugs":{"url":"https://github.com/auvoid/tauri-plugin-crypto-hw/issues"},"homepage":"https://github.com/auvoid/tauri-plugin-crypto-hw#readme","_integrity":"sha512-ZvCc1QGaimaLv4p8suRT+inCJE12LCHkciw1cPiIISzdSLLIEg05MMZnanCoefwJL9795KXD64u0vkIZsa+czg==","_resolved":"/tmp/5c2fef182f7e51fb142fcafda09082a5/auvo-tauri-plugin-crypto-hw-api-0.1.0.tgz","_from":"file:auvo-tauri-plugin-crypto-hw-api-0.1.0.tgz","_nodeVersion":"20.19.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-ZvCc1QGaimaLv4p8suRT+inCJE12LCHkciw1cPiIISzdSLLIEg05MMZnanCoefwJL9795KXD64u0vkIZsa+czg==","shasum":"f4a9a5bc3710468913499e44e22049af3fe4db18","tarball":"https://registry.npmjs.org/@auvo/tauri-plugin-crypto-hw-api/-/tauri-plugin-crypto-hw-api-0.1.0.tgz","fileCount":6,"unpackedSize":18515,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@auvo%2ftauri-plugin-crypto-hw-api@0.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD0lsadFIbFmVpI8eAn/84qgP90uaKmZbmlqX4pv69GXwIhAL9U1R/MCrukiM6X9HKRDliFD2ItfBeW/nuJ8RAWGQaM"}]},"_npmUser":{"name":"sosweetham","email":"sosweetham@gmail.com"},"directories":{},"maintainers":[{"name":"auvo_digital","email":"merul@auvo.io"},{"name":"sosweetham","email":"sosweetham@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/tauri-plugin-crypto-hw-api_0.1.0_1747028328132_0.42029187487481634"},"_hasShrinkwrap":false}},"time":{"created":"2025-05-12T05:38:48.031Z","0.1.0":"2025-05-12T05:38:48.331Z","modified":"2025-05-12T05:38:48.918Z"},"maintainers":[{"name":"auvo_digital","email":"merul@auvo.io"},{"name":"sosweetham","email":"sosweetham@gmail.com"}],"description":"Android/iOS StrongBox/Secure Enclave Bindings+Wrapper for Tauri.","homepage":"https://github.com/auvoid/tauri-plugin-crypto-hw#readme","keywords":["tauri","plugin","crypto","tpm","hsm","secure enclave","strongbox","android","ios","hardware"],"repository":{"type":"git","url":"git+https://github.com/auvoid/tauri-plugin-crypto-hw.git"},"author":{"name":"SoSweetHam","email":"soham@auvo.io"},"bugs":{"url":"https://github.com/auvoid/tauri-plugin-crypto-hw/issues"},"license":"MIT","readme":"# Tauri Plugin crypto\n\nThis project is a Tauri plugin which allows for hardware KeyStore (Secure Enclave (iOS) & StrongBox (Android)) control and management on iOS and Android devices with a consistent API.\n\n| Platform | Supported |\n| -------- | --------- |\n| Linux    | x         |\n| Windows  | x         |\n| macOS    | x         |\n| Android  | ✓         |\n| iOS      | ✓         |\n\n## API\n\n### Available Commands\n\n```ts\nimport { generate } from \"tauri-plugin-crypt-api\";\nasync function generate() {\n  generate(\"default\")\n    .then((returnValue) => {\n      genRes = returnValue;\n    })\n    .catch((error) => {\n      genRes = error;\n    });\n}\n```\n\n```ts\nimport { exists } from \"tauri-plugin-crypt-api\";\nasync function exists() {\n  exists(\"default\")\n    .then((returnValue) => {\n      genRes = returnValue;\n    })\n    .catch((error) => {\n      genRes = error;\n    });\n}\n```\n\n```ts\nimport { getPublicKey } from \"tauri-plugin-crypt-api\";\nasync function getPublicKey() {\n  getPublicKey(\"default\")\n    .then((returnValue) => {\n      genRes = returnValue;\n    })\n    .catch((error) => {\n      genRes = error;\n    });\n}\n```\n\n```ts\nimport { signPayload } from \"tauri-plugin-crypt-api\";\nasync function signPayload() {\n  signPayload(\"default\")\n    .then((returnValue) => {\n      genRes = returnValue;\n    })\n    .catch((error) => {\n      genRes = error;\n    });\n}\n```\n\n```ts\nimport { verifySignature } from \"tauri-plugin-crypt-api\";\nasync function verifySignature() {\n  verifySignature(\"default\")\n    .then((returnValue) => {\n      genRes = returnValue;\n    })\n    .catch((error) => {\n      genRes = error;\n    });\n}\n```\n\n### Default Permission\n\nThis permission set configures which\ncrypto features are by default exposed.\n\n##### Granted Permissions\n\nIt allows access to all crypto commands.\n\n##### This default permission set includes the following:\n\n- `allow-generate`\n- `allow-exists`\n- `allow-get-public-key`\n- `allow-sign-payload`\n- `allow-verify-signature`\n\n### Permission Table\n\n<table>\n<tr>\n<th>Identifier</th>\n<th>Description</th>\n</tr>\n\n<tr>\n<td>\n\n`crypto:allow-exists`\n\n</td>\n<td>\n\nEnables the exists command without any pre-configured scope.\n\n</td>\n</tr>\n\n<tr>\n<td>\n\n`crypto:deny-exists`\n\n</td>\n<td>\n\nDenies the exists command without any pre-configured scope.\n\n</td>\n</tr>\n\n<tr>\n<td>\n\n`crypto:allow-generate`\n\n</td>\n<td>\n\nEnables the generate command without any pre-configured scope.\n\n</td>\n</tr>\n\n<tr>\n<td>\n\n`crypto:deny-generate`\n\n</td>\n<td>\n\nDenies the generate command without any pre-configured scope.\n\n</td>\n</tr>\n\n<tr>\n<td>\n\n`crypto:allow-get-public-key`\n\n</td>\n<td>\n\nEnables the get_public_key command without any pre-configured scope.\n\n</td>\n</tr>\n\n<tr>\n<td>\n\n`crypto:deny-get-public-key`\n\n</td>\n<td>\n\nDenies the get_public_key command without any pre-configured scope.\n\n</td>\n</tr>\n\n<tr>\n<td>\n\n`crypto:allow-ping`\n\n</td>\n<td>\n\nEnables the ping command without any pre-configured scope.\n\n</td>\n</tr>\n\n<tr>\n<td>\n\n`crypto:deny-ping`\n\n</td>\n<td>\n\nDenies the ping command without any pre-configured scope.\n\n</td>\n</tr>\n\n<tr>\n<td>\n\n`crypto:allow-sign-payload`\n\n</td>\n<td>\n\nEnables the sign_payload command without any pre-configured scope.\n\n</td>\n</tr>\n\n<tr>\n<td>\n\n`crypto:deny-sign-payload`\n\n</td>\n<td>\n\nDenies the sign_payload command without any pre-configured scope.\n\n</td>\n</tr>\n\n<tr>\n<td>\n\n`crypto:allow-verify-signature`\n\n</td>\n<td>\n\nEnables the verify_signature command without any pre-configured scope.\n\n</td>\n</tr>\n\n<tr>\n<td>\n\n`crypto:deny-verify-signature`\n\n</td>\n<td>\n\nDenies the verify_signature command without any pre-configured scope.\n\n</td>\n</tr>\n</table>\n","readmeFilename":"README.md","_rev":"1-9467fe26b8a4924e790184626c4ca9d2"}