1.1.0 • Published 8 years ago

cordova-plugin-curve25519 v1.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

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