Java – how to protect SQLite dB in Android from theft

I'm making an application for a 28mb sq Lite file. It was originally in the Android resource folder. When it is installed in the user, it will be copied to the system folder. Because this DB is the most important to me. If someone can get this file, he can steal my information

When you unzip the APK file, you will easily get the SQ Lite file. Is there any way to protect it or hide it or encrypt it, so programmers or hackers can't easily get the database by extracting the APK file

resolvent:

You cannot fully protect your sqllite database because someone can reverse engineer your code and read the contents of the protection mechanism

You can take another path:

1) Keep the database online, that is, don't put it together with your application, let your product contact your database and query it

2) Encrypting the data in SQL lite and decrypting it dynamically in the code – this will make it more difficult to steal SQL Lite, which is not perfect, but it is always better than nothing

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>