cordova-plugin-curve25519

1.1.0 • Public • Published

Curve25519 plugin for Cordova/Phonegap - for iOS and Android


Curve25519 plugin for Cordova/Phonegap, for iOS and Android.

The Curve25519 implementation in this plugin is Adam Langley's curve25519-donna.

Installation

phonegap plugin add cordova-plugin-curve25519

Usage

The module is available in window.plugins.Curve25519

Input must be hexadecimal strings. Output is also hexadecimal strings.

Examples :

//Computing your public key
window.plugins.curve25519(secretKey, undefined, function(err, publicKey){
 
});
 
//Computing a shared secret
window.plugins.curve25519(secretKey, counterpartPublicKey, function(err, sharedSecret){
 
});

Testing

  1. Create a Cordova/Phonegap application
  2. Add the iOS and/or the Android platforms
  3. Add the testing framework and bind its page as the main page of the app
  4. Add this plugin
  5. Add this plugin's test cases, by adding the plugin located in the tests folder
    phonegap plugin add https://github.com/LockateMe/cordova-plugin-curve25519.git#:/tests

License

MIT license

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.0
    1

Package Sidebar

Install

npm i cordova-plugin-curve25519

Weekly Downloads

1

Version

1.1.0

License

MIT

Last publish

Collaborators

  • batikhsouri