Socket
Socket
Sign inDemoInstall

cordova-plugin-signature-fingerprint

Package Overview
Dependencies
0
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cordova-plugin-signature-fingerprint

Cordova Signature Fingerprint Plugin


Version published
Weekly downloads
37
decreased by-24.49%
Maintainers
1
Install size
14.8 kB
Created
Weekly downloads
 

Readme

Source

Cordova Signature Fingerprint Plugin

Join the chat at https://gitter.im/cordova-plugin-signature-fingerprint/Lobby

Get the fingerprint signature of your app's certificate and its package name.

Especially useful for adding yet another layer of security in your API calls.

Installation

With cordova-cli

If you are using cordova-cli, install with:

$ cordova plugin add cordova-plugin-signature-fingerprint

With plugman

With a plain plugman, you should be able to install with something like:

$ plugman --platform <android> --project <directory> --plugin https://github.com/fontesoft/cordova-plugin-signature-fingerprint.git

With Ionic 2/3

Use TypeScript wrapper Signature Fingerprint: https://www.npmjs.com/package/@fontesoft/signature-fingerprint

Supported Platforms

  • Android

Methods

  • cordova.getSignatureFingerprint.getSignature
  • cordova.getSignatureFingerprint.getPackageName

cordova.getSignatureFingerprint.getSignature

Return SHA1 Fingerprint of the app certificate

cordova.getSignatureFingerprint.getSignature(successCallback, [errorCallback]);
Parameters
  • successCallback: The callback that is passed fingerprint
  • errorCallback: (Optional) The callback that executes if an error occurs.
Example

    // successCallback
    var onSuccess = function(sha1) {
      alert("SHA1: " + sha1);
    }

    // errorCallback
    var onError = function(error) {
      alert("ERROR: " + error);
    }

    cordova.getSignatureFingerprint.getSignature(onSuccess, onError);

cordova.getSignatureFingerprint.getPackageName

Returns the package name of the app

cordova.getSignatureFingerprint.getPackageName(successCallback, [errorCallback]);
Parameters
  • successCallback: The callback that is passed fingerprint
  • errorCallback: (Optional) The callback that executes if an error occurs.
Example

    // successCallback
    var onSuccess = function(name) {
      alert("Package Name: " + name);
    }

    // errorCallback
    var onError = function(error) {
      alert("ERROR: " + error);
    }

    cordova.getSignatureFingerprint.getPackageName(onSuccess, onError);

License

The Cordova Signature Fingerprint Plugin is open-sourced software licensed under the MIT license.

Keywords

FAQs

Last updated on 16 Sep 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc