Curve25519 plugin for Cordova/Phonegap, for iOS and Android.
The Curve25519 implementation in this plugin is Adam Langley's curve25519-donna.
phonegap plugin add cordova-plugin-curve25519
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){
});
- Create a Cordova/Phonegap application
- Add the iOS and/or the Android platforms
- Add the testing framework and bind its page as the main page of the app
- Add this plugin
- 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
MIT license