{"id":15282596,"url":"https://github.com/webview-crypto/nativescript-webview-crypto","last_synced_at":"2025-07-23T02:04:15.388Z","repository":{"id":57308837,"uuid":"65824814","full_name":"webview-crypto/nativescript-webview-crypto","owner":"webview-crypto","description":"Web Cryptography API for NativeScript","archived":false,"fork":false,"pushed_at":"2016-12-30T19:11:10.000Z","size":13,"stargazers_count":4,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-10T21:32:00.129Z","etag":null,"topics":["nativescript","web-cryptography","webview"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/webview-crypto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-16T13:58:57.000Z","updated_at":"2024-05-30T16:37:40.000Z","dependencies_parsed_at":"2022-08-26T01:11:12.010Z","dependency_job_id":null,"html_url":"https://github.com/webview-crypto/nativescript-webview-crypto","commit_stats":null,"previous_names":["saulshanabrook/nativescript-webview-crypto"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/webview-crypto/nativescript-webview-crypto","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webview-crypto%2Fnativescript-webview-crypto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webview-crypto%2Fnativescript-webview-crypto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webview-crypto%2Fnativescript-webview-crypto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webview-crypto%2Fnativescript-webview-crypto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webview-crypto","download_url":"https://codeload.github.com/webview-crypto/nativescript-webview-crypto/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webview-crypto%2Fnativescript-webview-crypto/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266603979,"owners_count":23954724,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nativescript","web-cryptography","webview"],"created_at":"2024-09-30T14:31:28.236Z","updated_at":"2025-07-23T02:04:15.360Z","avatar_url":"https://github.com/webview-crypto.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nativescript-webview-crypto\n\n[![npm](https://img.shields.io/npm/v/nativescript-webview-crypto.svg?maxAge=2592000?style=flat-square)](https://www.npmjs.com/package/nativescript-webview-crypto)\n[![Dependency Status](https://dependencyci.com/github/saulshanabrook/nativescript-webview-crypto/badge)](https://dependencyci.com/github/saulshanabrook/nativescript-webview-crypto)\n\nThis brings `window.Crypto` to your Native Script application. It does this\nby communicating with a hidden WebView, which performs the actual\ncomputation.\n\nRefer to the [`webview-crypto`](https://github.com/saulshanabrook/webview-crypto)\nrepo for most of the code and some cavaets.\n\nIf you are using Angular2 with Nativescript, you should use\n[`nativescript-angular-webview-crypto`](https://github.com/saulshanabrook/nativescript-angular-webview-crypto).\n\n*This project is funded by [Burke Software and Consulting LLC](http://burkesoftware.com/) for [passit](http://passit.io/). We are available for hire for any improvement and integration needs on this project. Open an issue to start a conversation or email info @ burke software dot come.*\n\n\n## Install\n\nThis requires being [setup properly with NativeScript](http://docs.nativescript.org/start/quick-setup)\nfirst. Then install this as a plugin:\n\n```bash\ntns plugin add nativescript-webview-crypto\n```\n\n\u003c!-- ```bash\ntns plugin add nativescript-webview-crypto\n\nmkdir -p app/webview-crypto\ncp node_modules/nativescript-webview-interface/www/nativescript-webview-interface.js \\\n   node_modules/webview-crypto/webViewWorker.js \\\n   node_modules/nativescript-webview-crypto/www/index.html \\\n   node_modules/nativescript-webview-crypto/www/nativeScriptWebViewWorker.js \\\n   app/webview-crypto\n``` --\u003e\n\n## Quickstart\n\nRendering the `PolyfillCrypto` components will start up a WebView to\ntransparently proxy all the crypto calls to. It will also set the `crypto`\nglobal variable.\n\n```xml\n\u003cPage xmlns=\"http://schemas.nativescript.org/tns.xsd\" xmlns:WebViewCrypto=\"nativescript-webview-crypto\"\u003e\n  \u003cWebViewCrypto:WebViewCrypto /\u003e\n  ...\n\u003c/Page\u003e\n```\n\nNow, in any of your code, you can access `window.Crypto`, just like you would\nin a browser.\n\nYou can look at an [example repo](https://github.com/saulshanabrook/nativescript-webview-crypto-example)\nrunning [this example for symmetric encryption](https://blog.engelke.com/2014/06/22/symmetric-cryptography-in-the-browser-part-1/)\nin NativeScript.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebview-crypto%2Fnativescript-webview-crypto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebview-crypto%2Fnativescript-webview-crypto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebview-crypto%2Fnativescript-webview-crypto/lists"}