我想知道使用 PhoneGap/ Apache Cordova 创建/访问和加密的 SQLite 数据库是否可能。
我读到我可以在存储之前加密/之后解密,但这不是我想要的。
我宁愿寻找 PhoneGap 插件或 API 使用类似的东西:
- http://sqlite-crypt.com/ http://sqlite-crypt.com/
寻找类似但加密的东西:
- https://github.com/davibe/Phonegap-SQLitePlugin https://github.com/davibe/Phonegap-SQLitePlugin
Thanks
Regards
只是为了澄清这一点:无论您选择哪种方法,您总是先进行加密,后进行解密。
如果您使用 Apache Cordova 来控制 Android,更好的选择是使用 javax.crypto,* API 在 Javascript/Java 中开发一个插件。
Java 中的加密和解密原生算法的示例:
- http://cs.saddleback.edu/rwatkins/CS4B/Crypto/FileEncryptor.html http://cs.saddleback.edu/rwatkins/CS4B/Crypto/FileEncryptor.html
还有一个为 Apache Cordova 制作针对 Android 的插件的教程:
- http://www.adobe.com/devnet/html5/articles/extending-phonegap-with-native-plugins-for-android.html 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 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 http://www.adobe.com/devnet/html5/articles/extending-phonegap-with-native-plugins-for-ios.html
希望能帮助到你
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)