cordova-plugin-curve25519
v1.1.0
Published
Curve25519 key agreement algorithm, for Cordova apps on iOS and Android
Downloads
4
Maintainers
Readme
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
- 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
License
MIT license