Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/webview-crypto/nativescript-webview-crypto
Web Cryptography API for NativeScript
https://github.com/webview-crypto/nativescript-webview-crypto
nativescript web-cryptography webview
Last synced: 2 months ago
JSON representation
Web Cryptography API for NativeScript
- Host: GitHub
- URL: https://github.com/webview-crypto/nativescript-webview-crypto
- Owner: webview-crypto
- Created: 2016-08-16T13:58:57.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-12-30T19:11:10.000Z (almost 8 years ago)
- Last Synced: 2024-10-01T14:31:19.430Z (3 months ago)
- Topics: nativescript, web-cryptography, webview
- Language: TypeScript
- Homepage:
- Size: 12.7 KB
- Stars: 4
- Watchers: 2
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nativescript-webview-crypto
[![npm](https://img.shields.io/npm/v/nativescript-webview-crypto.svg?maxAge=2592000?style=flat-square)](https://www.npmjs.com/package/nativescript-webview-crypto)
[![Dependency Status](https://dependencyci.com/github/saulshanabrook/nativescript-webview-crypto/badge)](https://dependencyci.com/github/saulshanabrook/nativescript-webview-crypto)This brings `window.Crypto` to your Native Script application. It does this
by communicating with a hidden WebView, which performs the actual
computation.Refer to the [`webview-crypto`](https://github.com/saulshanabrook/webview-crypto)
repo for most of the code and some cavaets.If you are using Angular2 with Nativescript, you should use
[`nativescript-angular-webview-crypto`](https://github.com/saulshanabrook/nativescript-angular-webview-crypto).*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.*
## Install
This requires being [setup properly with NativeScript](http://docs.nativescript.org/start/quick-setup)
first. Then install this as a plugin:```bash
tns plugin add nativescript-webview-crypto
```## Quickstart
Rendering the `PolyfillCrypto` components will start up a WebView to
transparently proxy all the crypto calls to. It will also set the `crypto`
global variable.```xml
...```
Now, in any of your code, you can access `window.Crypto`, just like you would
in a browser.You can look at an [example repo](https://github.com/saulshanabrook/nativescript-webview-crypto-example)
running [this example for symmetric encryption](https://blog.engelke.com/2014/06/22/symmetric-cryptography-in-the-browser-part-1/)
in NativeScript.