realm / realm-dart-samples

Samples for Realm Flutter and Realm Dart SDKs
68 stars 25 forks source link

Encrypted realm example #53

Open w0aw opened 1 year ago

w0aw commented 1 year ago

Can someone forward me to some examples of using encrypted realm with more than 2 models in it. Thank you.

I hope i am on right place

desistefanova commented 1 year ago

Hi @maipal-oscoy! You can take a look at our tests, which are testing the encryption. You can take any of this samples and just can pass encryptionKey argument to the Configuration constructor. Here are the tests https://github.com/realm/realm-dart/blob/410c95a1e3983e1c7fde318073a2078f0677e41a/test/realm_test.dart#L960 There is no difference if you have one, two or more models.

w0aw commented 1 year ago

Thank you. I am here because of this

I am using getx state management tools and i am thinking of using realm for local persistent , because it offers best encryption.