AeroGear Crypto Plugin
Project Info | |
---|---|
License: | Apache License, Version 2.0 |
Build: | Cordova Plugin |
Documentation: | https://aerogear.org/docs/specs/aerogear-cordova/ |
Issue tracker: | https://issues.jboss.org/browse/AGCORDOVA |
Mailing lists: | aerogear-users (subscribe) |
aerogear-dev (subscribe) |
This plugin allows you to use the native aerogear crypto libs for your cordova apps. While staying close to the aerogear-js api.
- Password based key derivation support
var agCrypto = ;agCrypto;
-
Symmetric encryption support
- Encryption:
PromiseallagCrypto agCrypto ; // or with regular callbacks agCrypto;
- Decryption:
var options = IV: "69696ee955b62b73cd62bda875fc73d68219e0036b7a0b37" AAD: "feedfacedeadbeeffeedfacedeadbeefabaddad2" key: rawPassword data: cipherText;AeroGear;
- Asymmetric encryption support / iOS not supported
PromiseallagCrypto agCrypto agCrypto ;
Installing
cordova plugin add org.jboss.aerogear.cordova.crypto
For now, only iOS and Android are supported
iOS
cordova platform add ioscd platforms/iospod install
Android
cordova platform add android
Run tests
- Use your existing cordova app, or create a new one.
- Add the plugin and the tests:
cordova plugin add https://github.com/aerogear/aerogear-cordova-crypto.gitcordova plugin add https://github.com/aerogear/aerogear-cordova-crypto.git#:/tests
- Add this plugin:
cordova plugin add http://git-wip-us.apache.org/repos/asf/cordova-plugin-test-framework.git
- Change the start page in
config.xml
with<content src="cdvtests/index.html" />
or navigate to cdvtests/index.html from within your app.
Documentation
For more details about the current release, please consult our documentation.
Development
If you would like to help develop AeroGear you can join our developer's mailing list, join #aerogear on Freenode, or shout at us on Twitter @aerogears.
Also takes some time and skim the contributor guide
Questions?
Join our user mailing list for any questions or help! We really hope you enjoy app development with AeroGear!
Found a bug?
If you found a bug please create a ticket for us on Jira with some steps to reproduce it.