Sugar ORM defining an encryption key

I am trying to use Sugar ORM and its extension to encrypt a database. I am currently specifying a key for encryption using the manifest meta tag:

    <meta-data
        android:name="ENCRYPTION_KEY"
        android:value="<key>" />

Is this a safe way to store a key because I store it in a manifest? If not, can I somehow install it programmatically from within the application?

EDIT: I tried this guide, but it does not work, the database is not encrypted.

+4
source share
1 answer

. Github . Android, Gradle. , . , , . , .

EDIT: , , .

0

Source: https://habr.com/ru/post/1613792/


All Articles