我想知道在使用PhoneGap/ Apache Cordova时是否可以创建/访问和加密SQLite数据库。我看到可以在存储之前进行加密/ 在解密之后进行操作,但这不是我要寻找的内容。我更希望有一个PhoneGap插件或API,类似于:http://sqlite-crypt.com/。我正在寻找类似于以下加密内容的东西:https://github.com/davibe/Phonegap-SQLitePlugin。谢谢。
只是为了明确:无论选择哪种方法,您始终要先进行加密,然后再进行解密。如果您的目标是使用Apache Cordova针对Android开发插件,则更好的选择是使用javax.crypto,*API在Javascript / Java中开发插件。以下是Java中本地算法的加密和解密示例: http://cs.saddleback.edu/rwatkins/CS4B/Crypto/FileEncryptor.html 以下是针对Android的Apache Cordova插件制作教程: http://www.adobe.com/devnet/html5/articles/extending-phonegap-with-native-plugins-for-android.html 适用于iOS的加密本地库: https://chiselapp.com/user/thebeing/repository/GS-CommonCrypto/home 针对iOS的Apache Cordova插件方法: http://www.adobe.com/devnet/html5/articles/extending-phonegap-with-native-plugins-for-ios.html 希望这有所帮助。