RNCryptor implementation for Phonegap/Cordova