Example requested for utilising an encryption key with RealmDb

Hi,

I am currently using Realm as my database for mobile app development with .net MAUI and have noted the encryption key property with this. I am wondering if there are any examples on how to implement this and what the best way to generate a key per device to make this as secure as possible?

Many thanks

Chris

It’s probably best to use Secure storage to store the encryption key for the file. As for how to generate it, you could use RandomNumberGenerator.GetBytes.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.