Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adriano-di-giovanni/cordova-plugin-key-hash
Cordova plugin to generate and retrieve application key hashes from signatures.
https://github.com/adriano-di-giovanni/cordova-plugin-key-hash
cordova cordova-android cordova-android-plugin cordova-plugin hash key
Last synced: about 1 month ago
JSON representation
Cordova plugin to generate and retrieve application key hashes from signatures.
- Host: GitHub
- URL: https://github.com/adriano-di-giovanni/cordova-plugin-key-hash
- Owner: adriano-di-giovanni
- License: mit
- Created: 2018-02-12T15:02:50.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-12T15:13:43.000Z (almost 7 years ago)
- Last Synced: 2024-10-06T23:35:33.204Z (3 months ago)
- Topics: cordova, cordova-android, cordova-android-plugin, cordova-plugin, hash, key
- Language: JavaScript
- Size: 9.97 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Key Hash for Cordova
[![Build Status](https://travis-ci.org/adriano-di-giovanni/cordova-plugin-key-hash.svg?branch=master)](https://travis-ci.org/adriano-di-giovanni/cordova-plugin-key-hash)
> This plugin provides the ability to generate and retrieve application key hashes from signatures.
## Installation
```bash
cordova plugin add cordova-plugin-key-hash
```## Usage
```javascript
var successCallback = function(keyHashes) {
console.log(keyHashes) // ['NoeLNrq33NiEm2sfQRTnS+clCx4=']
}
var errorCallback = function(err) {
window.alert(err)
}window.plugins.getKeyHashes(successCallback, errorCallback)
```## Supported platforms
* Android
## Example app and tests
You can find example an example app inside the `example/` folder. You can run auto tests tapping on the `Run tests` button in the app.
| Example app | Auto tests |
| -------------------- | -------------------- |
| ![android-example-1] | ![android-example-2] |[android-example-1]: images/android-example-1.png
[android-example-2]: images/android-example-2.png## License
This project is [MIT-licensed](LICENSE)