难道PhoneGap的/ Apache的科尔多瓦提出了加密的SQLite数据库的API提出了、科尔、多瓦、数据库

2023-09-05 07:07:07 作者:情到深处人孤独°

我想知道,如果它使用的PhoneGap / Apache的科尔多瓦创建/访问和加密的SQLite数据库时,是可能的。

I would like to know if it's possible when using PhoneGap/ Apache Cordova to create/access and encrypted SQLite database.

我读存储之前,我可以加密/解密后,但是这并不是我所期待的。

I read I can encrypt before storing/ decrypt after but that's not what I am looking for.

我宁愿找一个PhoneGap的插件或API使用类似:

I am rather looking for a PhoneGap plugin or API using something like:

http://sqlite-crypt.com/

寻找这样的事情,但加密的:

Looking for something like this but encrypted:

https://github.com/davibe/Phonegap-SQLitePlugin

感谢

问候

推荐答案

只是将其清除出去。你总是在做之前加密和解密后,不管你选择哪一种方法

Just to clear it out: You're always been doing encryption before and decryption after, no matter which method you choose.

如果你tageting的Andr​​oid与Apache科尔多瓦更好的选择是使用javax.crypto中发展在Javascript / Java的一个插件,* API。

If you're tageting Android with Apache Cordova the better option is to develop a plugin in Javascript/Java using the javax.crypto,* API.

加密和解密本地算法在Java中的一个例子:

An example of encryption and decryption native algorithms in Java:

http://cs.saddleback.edu/rwatkins/CS4B/Crypto/FileEncryptor.html

和教程,使插件的Apache科尔多瓦针对Android的:

And a tutorial to make plugins for Apache Cordova targeting Android:

http://www.adobe.com/devnet/html5/articles/extending-phonegap-with-native-plugins-for-android.html

针对iOS的加密本地合适的lib目录下:

The encryption native lib suitable for iOS:

https://chiselapp.com/user/thebeing/repository/GS-CommonCrypto/home

Apache的科尔多瓦插件的方法针对iOS的:

The Apache Cordova Plugin approach targeting iOS:

http://www.adobe.com/devnet/html5/articles/extending-phonegap-with-native-plugins-for-ios.html

希望它可以帮助