Android Realm Security Database

Simple question. Is the Realm database safe? Is there a way to get data outside the application? If not:

I have very sensitive data that I must remember - how to keep them safe?

+4
source share
1 answer

The Realm file can be encrypted on disk by passing a 512-bit encryption key (64 bytes) to RealmConfiguration.Builder.encryptionKey ():

byte[] key = new byte[64];
new SecureRandom().nextBytes(key);
RealmConfiguration config = new RealmConfiguration.Builder(context)
  .encryptionKey(key)
  .build();

Realm realm = Realm.getInstance(config);

, , , AES-256. , Realm .

. , Android KeyStore, :

https://github.com/realm/realm-java/tree/master/examples/encryptionExample

+6

All Articles